Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(npm): cache bust npm specifiers more aggressively #18636

Merged
Prev Previous commit
Next Next commit
Future proof test
  • Loading branch information
dsherret committed Apr 11, 2023
commit d3969caec25d2c4e7be6930bf1451bb191fbb06f
7 changes: 5 additions & 2 deletions cli/tests/integration/cache_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,12 @@ fn cache_matching_package_json_dep_should_not_reload() {
let temp_dir = context.temp_dir();
temp_dir.write(
"package.json",
r#"{ "dependencies": { "@types/node": "*", "@denotest/esm-basic": "*" } }"#,
r#"{ "dependencies": { "@types/node": "18.8.2", "@denotest/esm-basic": "*" } }"#,
);
let output = context.new_command().args("cache npm:@types/node").run();
let output = context
.new_command()
.args("cache npm:@types/[email protected]")
.run();
output.assert_matches_text(concat!(
"Download https://localhost:4545/npm/registry/@types/node\n",
"Download https://localhost:4545/npm/registry/@types/node/node-18.8.2.tgz\n",
Expand Down