diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-14 13:47:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-14 17:47:15 +0000 |
commit | b83dac3b14340d452ae9a83e5f4da0104407a220 (patch) | |
tree | 94158848924d85643f542e4599628ceb79b9e8fd /cli/tests/integration/npm_tests.rs | |
parent | 0223ad72a999d1237162a96228f568d973b115fb (diff) |
fix(npm): improve error message importing non-existent file in a node_modules npm package (#19835)
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 6da402a38..82f73be08 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -286,6 +286,16 @@ itest!(nonexistent_file { exit_code: 1, }); +itest!(nonexistent_file_node_modules_dir { + // there was a bug where the message was different when using a node_modules dir + args: "run -A --quiet --node-modules-dir npm/nonexistent_file/main.js", + output: "npm/nonexistent_file/main.out", + copy_temp_dir: Some("npm/nonexistent_file/"), + envs: env_vars_for_npm_tests(), + http_server: true, + exit_code: 1, +}); + itest!(invalid_package_name { args: "run -A --quiet npm/invalid_package_name/main.js", output: "npm/invalid_package_name/main.out", |