summaryrefslogtreecommitdiff
path: root/cli/tests/integration/cache_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-05-17 23:53:42 +0200
committerGitHub <noreply@github.com>2022-05-17 23:53:42 +0200
commit9a85a95c435968e5bdf6e71192be3ed239fd2205 (patch)
tree7c51e96bd0f6f7a2565f688bef85de82b5fdf790 /cli/tests/integration/cache_tests.rs
parent330c820ae8d7826dfe3d88c01ba07728121fa021 (diff)
feat: subcommands type-check only local files by default (#14623)
This commit changes default mode of type-checking to "local" and adds "--check" flag to following subcommands: - deno bench - deno bundle - deno cache - deno compile - deno eval - deno install - deno test
Diffstat (limited to 'cli/tests/integration/cache_tests.rs')
-rw-r--r--cli/tests/integration/cache_tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/integration/cache_tests.rs b/cli/tests/integration/cache_tests.rs
index 00fd95149..bf0233a28 100644
--- a/cli/tests/integration/cache_tests.rs
+++ b/cli/tests/integration/cache_tests.rs
@@ -78,3 +78,16 @@ fn relative_home_dir() {
assert!(output.status.success());
assert_eq!(output.stdout, b"");
}
+
+itest!(check_local_by_default {
+ args: "cache --quiet cache/check_local_by_default.ts",
+ output: "cache/check_local_by_default.out",
+ http_server: true,
+});
+
+itest!(check_local_by_default2 {
+ args: "cache --quiet cache/check_local_by_default2.ts",
+ output: "cache/check_local_by_default2.out",
+ http_server: true,
+ exit_code: 1,
+});