summaryrefslogtreecommitdiff
path: root/cli/tests/integration/npm_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-10-25 18:20:07 +0200
committerGitHub <noreply@github.com>2022-10-25 18:20:07 +0200
commit9835b095e56bdfc2b195b2c4741631b78a759115 (patch)
tree1fa8ee44cdc374d48c2307c1bd35085af74ec85b /cli/tests/integration/npm_tests.rs
parent10c3c0ee5733cfa5cf4c2825c6a8fce9f05060aa (diff)
fix(npm): add support for npm packages in lock files (#15938)
This commit adds support for npm packages in the lock file.
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r--cli/tests/integration/npm_tests.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs
index 9fc817141..8fa79d06c 100644
--- a/cli/tests/integration/npm_tests.rs
+++ b/cli/tests/integration/npm_tests.rs
@@ -158,6 +158,14 @@ itest!(import_map {
http_server: true,
});
+itest!(lock_file {
+ args: "run --allow-read --allow-env --unstable --lock npm/lock_file/lock.json npm/lock_file/main.js",
+ output: "npm/lock_file/main.out",
+ envs: env_vars(),
+ http_server: true,
+ exit_code: 10,
+});
+
itest!(sub_paths {
args: "run --unstable -A --quiet npm/sub_paths/main.jsx",
output: "npm/sub_paths/main.out",