From 9835b095e56bdfc2b195b2c4741631b78a759115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 25 Oct 2022 18:20:07 +0200 Subject: fix(npm): add support for npm packages in lock files (#15938) This commit adds support for npm packages in the lock file. --- cli/tests/integration/npm_tests.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/tests/integration') 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", -- cgit v1.2.3