diff --git a/tests/Features/Commands/UpdateTsconfigCommandTest.php b/tests/Features/Commands/UpdateTsconfigCommandTest.php index 813a87f..4cb23b9 100644 --- a/tests/Features/Commands/UpdateTsconfigCommandTest.php +++ b/tests/Features/Commands/UpdateTsconfigCommandTest.php @@ -67,9 +67,16 @@ it('asks for confirmation before running in production', function () { sandbox(function () { + $isLaravel10OrGreater = version_compare(app()->version(), '10.0.0', '>='); + set_env('production'); this()->artisan('vite:tsconfig') - ->expectsConfirmation('Do you really wish to run this command?', 'yes') + ->expectsConfirmation( + question: $isLaravel10OrGreater + ? 'Are you sure you want to run this command?' + : 'Do you really wish to run this command?', + answer: 'yes' + ) ->assertExitCode(0); expect(File::exists(base_path('tsconfig.json')))->toBeTrue();