From c7d26a27b6b40d33415340a9b73fcf8b53f845ab Mon Sep 17 00:00:00 2001 From: jordanbrauer <18744334+jordanbrauer@users.noreply.github.com> Date: Wed, 7 Apr 2021 09:49:12 -0500 Subject: [PATCH] fix: ensure that Pest is loaded before the test file itself --- src/Console/Command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Command.php b/src/Console/Command.php index cfd8f0d4..1d6ef21c 100644 --- a/src/Console/Command.php +++ b/src/Console/Command.php @@ -90,8 +90,6 @@ final class Command extends BaseCommand */ $this->arguments = AddsDefaults::to($this->arguments); - LoadStructure::in($this->testSuite->rootPath); - $testRunner = new TestRunner($this->arguments['loader']); $testSuite = $this->arguments['test']; @@ -127,6 +125,8 @@ final class Command extends BaseCommand */ public function run(array $argv, bool $exit = true): int { + LoadStructure::in($this->testSuite->rootPath); + $result = parent::run($argv, false); /*