summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/eval/check_local_by_default2.ts
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/testdata/eval/check_local_by_default2.ts
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/testdata/eval/check_local_by_default2.ts')
-rw-r--r--cli/tests/testdata/eval/check_local_by_default2.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/eval/check_local_by_default2.ts b/cli/tests/testdata/eval/check_local_by_default2.ts
new file mode 100644
index 000000000..5177ff944
--- /dev/null
+++ b/cli/tests/testdata/eval/check_local_by_default2.ts
@@ -0,0 +1,6 @@
+import * as a from "http://localhost:4545/subdir/type_error.ts";
+
+const b: "b" = 12;
+
+console.log(a.a);
+console.log(b);