summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/npm_tests.rs7
-rw-r--r--cli/tests/testdata/npm/deno_cache.out5
2 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs
index de3f81674..bc19c613d 100644
--- a/cli/tests/integration/npm_tests.rs
+++ b/cli/tests/integration/npm_tests.rs
@@ -203,6 +203,13 @@ itest!(error_version_after_subpath {
exit_code: 1,
});
+itest!(deno_cache {
+ args: "cache --unstable --reload npm:chalk npm:mkdirp",
+ output: "npm/deno_cache.out",
+ envs: env_vars(),
+ http_server: true,
+});
+
#[test]
fn parallel_downloading() {
let (out, _err) = util::run_and_collect_output_with_args(
diff --git a/cli/tests/testdata/npm/deno_cache.out b/cli/tests/testdata/npm/deno_cache.out
new file mode 100644
index 000000000..957919df1
--- /dev/null
+++ b/cli/tests/testdata/npm/deno_cache.out
@@ -0,0 +1,5 @@
+Download http://localhost:4545/npm/registry/chalk
+Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
+Download http://localhost:4545/npm/registry/mkdirp
+Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
+Download http://localhost:4545/npm/registry/mkdirp/mkdirp-1.0.4.tgz