diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c9cda2a2d..1b91e5f2f 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -54,7 +54,7 @@ deno_emit = "=0.28.0" deno_graph = "=0.55.0" deno_lint = { version = "=0.51.0", features = ["docs"] } deno_lockfile.workspace = true -deno_npm = "0.15.1" +deno_npm = "0.15.2" deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "exclude_runtime_main_js", "include_js_files_for_snapshotting"] } deno_semver = "0.5.1" deno_task_shell = "=0.13.2" diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 0fd0cdb4b..25a39b68d 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -1760,6 +1760,15 @@ fn reload_info_not_found_cache_but_exists_remote() { serde_json::from_str(&deno_dir.read_to_string(®istry_json_path)) .unwrap(); remove_version(&mut registry_json, version); + // for the purpose of this test, just remove the dist-tag as it might contain this version + registry_json + .as_object_mut() + .unwrap() + .get_mut("dist-tags") + .unwrap() + .as_object_mut() + .unwrap() + .remove("latest"); deno_dir.write( ®istry_json_path, serde_json::to_string(®istry_json).unwrap(), |