diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-10-03 13:35:47 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 17:35:47 +0000 |
commit | 54fcf539c86b0e5ebdc0b990054e206007ada58d (patch) | |
tree | cd15fdc4082e628db97667b6319e93ccf59c201d /cli/tests/integration/npm_tests.rs | |
parent | 148694eb351ea3f733852b7786a3268617811e27 (diff) |
fix(npm): upgrade to deno_npm 0.15.2 (#20772)
* fix: handle optional deps not found in dependencies map
(https://github.com/denoland/deno_npm/pull/38)
* fix: resolve a version requirement to the latest dist tag if it
matches (https://github.com/denoland/deno_npm/pull/37)
Closes #20771
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 9 |
1 files changed, 9 insertions, 0 deletions
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(), |