summaryrefslogtreecommitdiff
path: root/cli/tests/integration/npm_tests.rs
diff options
context:
space:
mode:
authorMarvin Hagemeister <hello@marvinh.dev>2023-04-06 16:12:50 +0200
committerGitHub <noreply@github.com>2023-04-06 16:12:50 +0200
commite51985ca749d80d40474489c739cf163b35843e1 (patch)
tree8c0e7e240540a0cca52f5dde88753895d09a2363 /cli/tests/integration/npm_tests.rs
parent4cc8784f5b3a71b2a882ff359d593b4b74c9e89b (diff)
fix(ext/node): fix unable to resolve fraction.js (#18544)
Turns out `autoprefixer` is a better reproduction case then `microbundle`. Fixes #18535 Fixes #18600 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r--cli/tests/integration/npm_tests.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs
index ba9e1bdde..ea93d8879 100644
--- a/cli/tests/integration/npm_tests.rs
+++ b/cli/tests/integration/npm_tests.rs
@@ -735,6 +735,15 @@ itest!(node_modules_dir_require_added_node_modules_folder {
temp_cwd: true,
});
+itest!(node_modules_dir_require_main_entry {
+ args: "run --node-modules-dir -A --quiet $TESTDATA/npm/require_main/main.js",
+ output: "npm/require_main/main.out",
+ envs: env_vars_for_npm_tests(),
+ http_server: true,
+ exit_code: 0,
+ temp_cwd: true,
+});
+
itest!(node_modules_dir_with_deps {
args: "run --allow-read --allow-env --node-modules-dir $TESTDATA/npm/cjs_with_deps/main.js",
output: "npm/cjs_with_deps/main_node_modules.out",