summaryrefslogtreecommitdiff
path: root/cli/tests/integration/cache_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-06-27 13:27:36 -0400
committerGitHub <noreply@github.com>2021-06-27 13:27:36 -0400
commit098a7c8886a5be80f2acb4ed81365498a228ca0a (patch)
tree05d4ed8b1c7985228d109326eac1a6add8fe0af1 /cli/tests/integration/cache_tests.rs
parent5bf7da91f178067c62d07f0220c99ba27791d206 (diff)
chore: split up integration_tests.rs into separate files (#11131)
Diffstat (limited to 'cli/tests/integration/cache_tests.rs')
-rw-r--r--cli/tests/integration/cache_tests.rs50
1 files changed, 50 insertions, 0 deletions
diff --git a/cli/tests/integration/cache_tests.rs b/cli/tests/integration/cache_tests.rs
new file mode 100644
index 000000000..c97741a13
--- /dev/null
+++ b/cli/tests/integration/cache_tests.rs
@@ -0,0 +1,50 @@
+// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+
+use crate::itest;
+
+itest!(_036_import_map_fetch {
+ args:
+ "cache --quiet --reload --import-map=import_maps/import_map.json import_maps/test.ts",
+ output: "036_import_map_fetch.out",
+});
+
+itest!(_037_fetch_multiple {
+ args: "cache --reload fetch/test.ts fetch/other.ts",
+ http_server: true,
+ output: "037_fetch_multiple.out",
+});
+
+itest!(_095_cache_with_bare_import {
+ args: "cache 095_cache_with_bare_import.ts",
+ output: "095_cache_with_bare_import.ts.out",
+ exit_code: 1,
+});
+
+itest!(cache_extensionless {
+ args: "cache --reload http://localhost:4545/cli/tests/subdir/no_js_ext",
+ output: "cache_extensionless.out",
+ http_server: true,
+});
+
+itest!(cache_random_extension {
+ args: "cache --reload http://localhost:4545/cli/tests/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",
+ output: "performance_stats.out",
+});
+
+itest!(redirect_cache {
+ http_server: true,
+ args: "cache --reload http://localhost:4548/cli/tests/subdir/redirects/a.ts",
+ output: "redirect_cache.out",
+});
+
+itest!(ignore_require {
+ args: "cache --reload --no-check ignore_require.js",
+ output_str: Some(""),
+ exit_code: 0,
+});