diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-01 21:43:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-01 21:43:17 -0400 |
commit | 3b9845d8913f72b6550808c5fda32870c86bd872 (patch) | |
tree | b31e51f2d43ecb193fced96834eefc6dd69dff70 /cli/tests/integration/npm_tests.rs | |
parent | bc381572d11d5861f78215a639f80fa250384087 (diff) |
fix(npm): handle more reserved words as cjs exports (#19672)
Closes #19665
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 014f22658..884f2a3a9 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -103,13 +103,13 @@ itest!(conditional_exports { }); itest!(conditional_exports_node_modules_dir { - args: - "run --allow-read --node-modules-dir $TESTDATA/npm/conditional_exports/main.js", - output: "npm/conditional_exports/main_node_modules.out", - envs: env_vars_for_npm_tests(), - http_server: true, - temp_cwd: true, - }); + args: + "run --allow-read --node-modules-dir $TESTDATA/npm/conditional_exports/main.js", + output: "npm/conditional_exports/main_node_modules.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", @@ -2021,3 +2021,10 @@ fn top_level_install_package_json_explicit_opt_in() { assert!(node_modules_dir.join("@denotest").exists()); } + +itest!(reserved_word_exports { + args: "run npm/reserved_word_exports/main.ts", + output: "npm/reserved_word_exports/main.out", + envs: env_vars_for_npm_tests(), + http_server: true, +}); |