diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-01-08 19:30:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 19:30:36 -0500 |
commit | be888c068cbe42c1cb93d9885827dc97aa40d6f6 (patch) | |
tree | 038de43014e22006a7fd4bbed97c4843bbebd087 /cli/tests/integration/task_tests.rs | |
parent | 0efb17b2cbd326abec1a053fb0eb81ce5c881eea (diff) |
fix(task): do not eagerly auto-install packages in package.json when `"nodeModulesDir": false` (#21858)
There's no need to auto-install the package.json if the user is not
using a node_modules directory.
Closes #21850
Diffstat (limited to 'cli/tests/integration/task_tests.rs')
-rw-r--r-- | cli/tests/integration/task_tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/task_tests.rs b/cli/tests/integration/task_tests.rs index 603fa9bfa..c8531c13f 100644 --- a/cli/tests/integration/task_tests.rs +++ b/cli/tests/integration/task_tests.rs @@ -178,6 +178,18 @@ itest!(task_package_json_npm_bin { http_server: true, }); +// should not auto-install the packages in the package.json +// when using nodeModulesDir: false +itest!(task_package_json_node_modules_dir_false { + args: "task echo", + cwd: Some("task/package_json_node_modules_dir_false/"), + output: "task/package_json_node_modules_dir_false/bin.out", + copy_temp_dir: Some("task/package_json_node_modules_dir_false/"), + envs: env_vars_for_npm_tests(), + exit_code: 0, + http_server: true, +}); + itest!(task_both_no_arg { args: "task", cwd: Some("task/both/"), |