feat: allows to skip support via env

This commit is contained in:
Nuno Maduro
2023-03-17 11:42:23 +00:00
parent 0e4cc94471
commit ec4f15132e
2 changed files with 2 additions and 3 deletions

View File

@ -46,12 +46,12 @@ final class Thanks
$bootstrapper = new BootView($this->output); $bootstrapper = new BootView($this->output);
$bootstrapper->boot(); $bootstrapper->boot();
$wantsToSupport = $this->input->isInteractive() && (new SymfonyQuestionHelper())->ask( $wantsToSupport = ! isset($_ENV['PEST_NO_SUPPORT']) && $this->input->isInteractive() && (new SymfonyQuestionHelper())->ask(
new ArrayInput([]), new ArrayInput([]),
$this->output, $this->output,
new ConfirmationQuestion( new ConfirmationQuestion(
' <options=bold>Wanna show Pest some love by starring it on GitHub?</>', ' <options=bold>Wanna show Pest some love by starring it on GitHub?</>',
true, false,
) )
); );

View File

@ -11,7 +11,6 @@ use Pest\Support\View;
use Pest\TestSuite; use Pest\TestSuite;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Process\Process;
/** /**
* @internal * @internal