Skip to content

Commit

Permalink
proper return code
Browse files Browse the repository at this point in the history
  • Loading branch information
markhuot committed Sep 30, 2024
1 parent 6d1bfdc commit 9cc1466
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/console/PestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ public function options($actionID): array
public function actionTest()
{
$this->runInit();
$this->runTests();

return ExitCode::OK;
return $this->runTests();
}

/**
Expand Down Expand Up @@ -89,7 +87,7 @@ protected function runInit()
}
}

protected function runTests()
protected function runTests(): int
{
$params = $this->request->getParams();
$pestOptions = [];
Expand All @@ -110,6 +108,8 @@ protected function runTests()
echo $data;
}
}

return $process->getExitCode();
}

public function actionCompileTemplates()
Expand Down

0 comments on commit 9cc1466

Please sign in to comment.