diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2023-02-23 22:28:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 22:28:12 +0900 |
commit | 6de815859b65a8fb03b6b00f6d26c93d3b6cf820 (patch) | |
tree | cfc4cb65b3ddce493a54c6967b336f00b99dd5d1 /cli/tests/integration/npm_tests.rs | |
parent | 38f9aa0f9c8e80ca62db853e93d06b96d3596500 (diff) |
fix(ext/node): fix npm module resolution when --node-modules-dir specified (#17896)
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 3d21b57c3..2ece84c5d 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -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", |