diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-05-17 23:53:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 23:53:42 +0200 |
commit | 9a85a95c435968e5bdf6e71192be3ed239fd2205 (patch) | |
tree | 7c51e96bd0f6f7a2565f688bef85de82b5fdf790 /cli/tests/integration/eval_tests.rs | |
parent | 330c820ae8d7826dfe3d88c01ba07728121fa021 (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/eval_tests.rs')
-rw-r--r-- | cli/tests/integration/eval_tests.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/integration/eval_tests.rs b/cli/tests/integration/eval_tests.rs index d7503ca80..a93f85286 100644 --- a/cli/tests/integration/eval_tests.rs +++ b/cli/tests/integration/eval_tests.rs @@ -66,3 +66,16 @@ itest!(v8_flags_eval { args: "eval --v8-flags=--expose-gc console.log(typeof(gc))", output: "v8_flags.js.out", }); + +itest!(check_local_by_default { + args: "eval --quiet import('http://localhost:4545/subdir/type_error.ts').then(console.log);", + output: "eval/check_local_by_default.out", + http_server: true, +}); + +itest!(check_local_by_default2 { + args: "eval --quiet import('./eval/check_local_by_default2.ts').then(console.log);", + output: "eval/check_local_by_default2.out", + http_server: true, + exit_code: 1, +}); |