mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix(ext/node): fix npm module resolution when --node-modules-dir specified (#17896)
This commit is contained in:
parent
38f9aa0f9c
commit
6de815859b
3 changed files with 11 additions and 4 deletions
|
@ -660,6 +660,13 @@ itest!(deno_run_cowsay {
|
|||
http_server: true,
|
||||
});
|
||||
|
||||
itest!(deno_run_cowsay_with_node_modules_dir {
|
||||
args: "run -A --quiet --node-modules-dir npm:cowsay@1.5.0 Hello",
|
||||
output: "npm/deno_run_cowsay.out",
|
||||
envs: env_vars_for_npm_tests_no_sync_download(),
|
||||
http_server: true,
|
||||
});
|
||||
|
||||
itest!(deno_run_cowsay_explicit {
|
||||
args: "run -A --quiet npm:cowsay@1.5.0/cowsay Hello",
|
||||
output: "npm/deno_run_cowsay.out",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue