summaryrefslogtreecommitdiff
path: root/cli/tests/integration/test_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-02-26 14:49:50 +0100
committerGitHub <noreply@github.com>2022-02-26 14:49:50 +0100
commit4bea1d06c7ddb177ed20e0f32b70d7ff889871ab (patch)
tree3884dba7059f2cd727942e728209651c8454b837 /cli/tests/integration/test_tests.rs
parent4a20435d3c4f7875c1d6f681cd5c791de8722496 (diff)
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).
Diffstat (limited to 'cli/tests/integration/test_tests.rs')
-rw-r--r--cli/tests/integration/test_tests.rs12
1 files changed, 12 insertions, 0 deletions
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",
+});