From 64bb85372056bd5a1d86dcc4ec1f04c0512f53d0 Mon Sep 17 00:00:00 2001 From: Enzo Innocenzi Date: Mon, 3 Aug 2020 21:39:58 +0200 Subject: [PATCH] fix: correctly avoid interactions --- src/Laravel/Commands/PestInstallCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Laravel/Commands/PestInstallCommand.php b/src/Laravel/Commands/PestInstallCommand.php index 1e924e09..2885f629 100644 --- a/src/Laravel/Commands/PestInstallCommand.php +++ b/src/Laravel/Commands/PestInstallCommand.php @@ -60,7 +60,9 @@ final class PestInstallCommand extends Command $this->output->success('`tests/Pest.php` created successfully.'); $this->output->success('`tests/Helpers.php` created successfully.'); - (new \Pest\Console\Thanks($this->output))(); + if (! (bool) $this->option('no-interaction')) { + (new \Pest\Console\Thanks($this->output))(); + } } /**