Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/discovery/src/BootDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use AssertionError;
use Closure;
use Pest\Exceptions\InvalidPestCommand;
use Pest\Exceptions\TestAlreadyExist;
use Psr\Container\ContainerInterface;
use Psr\Container\NotFoundExceptionInterface;
use Tempest\Discovery\Exceptions\DiscoveryClassCouldNotBeResolved;
Expand Down Expand Up @@ -208,7 +209,9 @@ private function discoverPath(string $input, DiscoveryLocation $location, array
} elseif (class_exists($className)) {
$input = new ClassReflector($className);
}
} catch (AssertionError|InvalidPestCommand) { // @phpstan-ignore class.notFound

// @phpstan-ignore-next-line
} catch (AssertionError|InvalidPestCommand|TestAlreadyExist) {
// Workaround for Pest test files autoloading.
// @mago-expect lint:no-empty-catch-clause
}
Expand Down
Loading