diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-24 15:04:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-24 15:04:21 -0400 |
commit | ba6f573b4eb0855f971ebef7b4b30d6d3ed887e4 (patch) | |
tree | 34a04866a07a75ae9bd24e900649d2e6a247a872 /cli/tests/integration/npm_tests.rs | |
parent | 0fbfdaf90147aa0dd5dce6d2df6c0c0691f8cc4a (diff) |
fix(npm): create `node_modules/.deno/node_modules` folder (#19242)
This is what pnpm does and we were missing it. It makes modules work
which have a dependency on something, but don't say they have that
dependency, but that dep is still in the tree somewhere.
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index bd19ed26f..3a18c13dc 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -245,6 +245,25 @@ itest!(tarball_with_global_header { http_server: true, }); +itest!(node_modules_deno_node_modules { + args: "run --quiet npm/node_modules_deno_node_modules/main.ts", + output: "npm/node_modules_deno_node_modules/main.out", + copy_temp_dir: Some("npm/node_modules_deno_node_modules/"), + exit_code: 0, + envs: env_vars_for_npm_tests(), + http_server: true, +}); + +itest!(node_modules_deno_node_modules_local { + args: + "run --quiet --node-modules-dir npm/node_modules_deno_node_modules/main.ts", + output: "npm/node_modules_deno_node_modules/main.out", + copy_temp_dir: Some("npm/node_modules_deno_node_modules/"), + exit_code: 0, + envs: env_vars_for_npm_tests(), + http_server: true, +}); + itest!(nonexistent_file { args: "run -A --quiet npm/nonexistent_file/main.js", output: "npm/nonexistent_file/main.out", |