From 4a0a412d7cd077ff519b4da8f6ffd1247c6375a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 13 Jun 2022 23:13:16 +0200 Subject: feat: no type-check by default (#14691) This commit changes default default behavior of type checking for several subcommands. Instead of type checking and reporting type errors only for local files, the type checking is skipped entirely. Type checking can still be enabled using the "--check" flag. Following subcomands are affected: - deno cache - deno install - deno eval - deno run --- cli/tests/integration/cache_tests.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'cli/tests/integration/cache_tests.rs') diff --git a/cli/tests/integration/cache_tests.rs b/cli/tests/integration/cache_tests.rs index bf0233a28..aaae62531 100644 --- a/cli/tests/integration/cache_tests.rs +++ b/cli/tests/integration/cache_tests.rs @@ -9,7 +9,7 @@ itest!(_036_import_map_fetch { }); itest!(_037_fetch_multiple { - args: "cache --reload fetch/test.ts fetch/other.ts", + args: "cache --reload --check=all fetch/test.ts fetch/other.ts", http_server: true, output: "037_fetch_multiple.out", }); @@ -21,25 +21,27 @@ itest!(_095_cache_with_bare_import { }); itest!(cache_extensionless { - args: "cache --reload http://localhost:4545/subdir/no_js_ext", + args: "cache --reload --check=all http://localhost:4545/subdir/no_js_ext", output: "cache_extensionless.out", http_server: true, }); itest!(cache_random_extension { - args: "cache --reload http://localhost:4545/subdir/no_js_ext@1.0.0", + args: + "cache --reload --check=all http://localhost:4545/subdir/no_js_ext@1.0.0", output: "cache_random_extension.out", http_server: true, }); itest!(performance_stats { - args: "cache --reload --log-level debug 002_hello.ts", + args: "cache --reload --check=all --log-level debug 002_hello.ts", output: "performance_stats.out", }); itest!(redirect_cache { http_server: true, - args: "cache --reload http://localhost:4548/subdir/redirects/a.ts", + args: + "cache --reload --check=all http://localhost:4548/subdir/redirects/a.ts", output: "redirect_cache.out", }); @@ -89,5 +91,4 @@ 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, }); -- cgit v1.2.3