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/testdata/npm | |
| parent | 0223ad72a999d1237162a96228f568d973b115fb (diff) | |
fix(npm): improve error message importing non-existent file in a node_modules npm package (#19835)
Diffstat (limited to 'cli/tests/testdata/npm')
| -rw-r--r-- | cli/tests/testdata/npm/nonexistent_file/main.js | 3 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/nonexistent_file/main.out | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cli/tests/testdata/npm/nonexistent_file/main.js b/cli/tests/testdata/npm/nonexistent_file/main.js index 4e4657088..c480b0548 100644 --- a/cli/tests/testdata/npm/nonexistent_file/main.js +++ b/cli/tests/testdata/npm/nonexistent_file/main.js @@ -1 +1,2 @@ -import hmacSHA512 from "npm:crypto-js/hmac-sha512"; +import hmacSHA512 from "npm:crypto-js/non-existent"; +console.log(hmacSHA512); diff --git a/cli/tests/testdata/npm/nonexistent_file/main.out b/cli/tests/testdata/npm/nonexistent_file/main.out index 5f43f7242..baa79b1ce 100644 --- a/cli/tests/testdata/npm/nonexistent_file/main.out +++ b/cli/tests/testdata/npm/nonexistent_file/main.out @@ -1,4 +1,4 @@ -error: Unable to load [WILDCARD]hmac-sha512 imported from [WILDCARD]/testdata/npm/nonexistent_file/main.js +error: Unable to load [WILDCARD]non-existent imported from [WILDCARD]main.js Caused by: [WILDCARD] |
