diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-12-19 17:09:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 17:09:54 +0100 |
commit | 383d40a33bee842a7462fb157f5faca263598d87 (patch) | |
tree | f80323ac9220a3f339bf474a93485f3d2f7d7af0 /cli/tests/npm_tests.rs | |
parent | d1f6b519907d3778f02436cf1fcc4f94f563acf8 (diff) |
fix(npm): conditional exports with --node-modules-dir (#17111)
This commit fixes conditional exports in `require()` implementation
if `--node-modules-dir` flag is used.
Diffstat (limited to 'cli/tests/npm_tests.rs')
-rw-r--r-- | cli/tests/npm_tests.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/npm_tests.rs b/cli/tests/npm_tests.rs index 07e36850f..038251d9b 100644 --- a/cli/tests/npm_tests.rs +++ b/cli/tests/npm_tests.rs @@ -102,6 +102,15 @@ mod npm { http_server: true, }); + itest!(conditional_exports_node_modules_dir { + args: + "run --allow-read --node-modules-dir $TESTDATA/npm/conditional_exports/main.js", + output: "npm/conditional_exports/main.out", + envs: env_vars_for_npm_tests(), + http_server: true, + temp_cwd: true, + }); + itest!(dual_cjs_esm { args: "run -A --quiet npm/dual_cjs_esm/main.ts", output: "npm/dual_cjs_esm/main.out", |