diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-24 19:35:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-24 19:35:43 -0500 |
| commit | 033b70af19300a4e34dcf19ab0031245bfc19625 (patch) | |
| tree | ebcd8e9ebd85a974c9845af0291ab3bdb9765704 /cli/tests/integration/run_tests.rs | |
| parent | 5683daf1aa1c01f5f4d01879d6ce054b0922faf6 (diff) | |
fix(npm): lazily install package.json dependencies only when necessary (#17931)
This lazily does an "npm install" when any package name matches what's
found in the package.json or when running a script from package.json
with deno task.
Part of #17916
Closes #17928
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
| -rw-r--r-- | cli/tests/integration/run_tests.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index c72fa5d9b..b60efc94d 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2819,6 +2819,14 @@ itest!(package_json_auto_discovered_for_npm_binary { http_server: true, }); +itest!(package_json_auto_discovered_no_package_json_imports { + // this should not use --quiet because we should ensure no package.json install occurs + args: "run -A no_package_json_imports.ts", + output: "run/with_package_json/no_deno_json/no_package_json_imports.out", + cwd: Some("run/with_package_json/no_deno_json"), + copy_temp_dir: Some("run/with_package_json/no_deno_json"), +}); + itest!(package_json_with_deno_json { args: "run --quiet -A main.ts", output: "package_json/deno_json/main.out", |
