From 4bea1d06c7ddb177ed20e0f32b70d7ff889871ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 26 Feb 2022 14:49:50 +0100 Subject: fix(test): use --no-prompt by default (#13777) This commit changes "deno test" subcommand, to always never prompt for permissions (ie. as if "deno test" was run with "--no-prompt" flag). --- cli/tests/integration/test_tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/tests/integration/test_tests.rs') diff --git a/cli/tests/integration/test_tests.rs b/cli/tests/integration/test_tests.rs index c80406935..b19cba8f4 100644 --- a/cli/tests/integration/test_tests.rs +++ b/cli/tests/integration/test_tests.rs @@ -262,3 +262,15 @@ itest!(steps_invalid_usage { exit_code: 1, output: "test/steps/invalid_usage.out", }); + +itest!(no_prompt_by_default { + args: "test test/no_prompt_by_default.ts", + exit_code: 1, + output: "test/no_prompt_by_default.out", +}); + +itest!(no_prompt_with_denied_perms { + args: "test --allow-read test/no_prompt_with_denied_perms.ts", + exit_code: 1, + output: "test/no_prompt_with_denied_perms.out", +}); -- cgit v1.2.3