From fc4025c878a7986576f693ed3ad297212f6a99de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 3 Sep 2022 15:43:35 +0200 Subject: fix(npm): add more context to errors when file doesn't exist (#15749) --- cli/tests/testdata/npm/nonexistent_file/main.js | 1 + cli/tests/testdata/npm/nonexistent_file/main.out | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 cli/tests/testdata/npm/nonexistent_file/main.js create mode 100644 cli/tests/testdata/npm/nonexistent_file/main.out (limited to 'cli/tests/testdata/npm/nonexistent_file') diff --git a/cli/tests/testdata/npm/nonexistent_file/main.js b/cli/tests/testdata/npm/nonexistent_file/main.js new file mode 100644 index 000000000..4e4657088 --- /dev/null +++ b/cli/tests/testdata/npm/nonexistent_file/main.js @@ -0,0 +1 @@ +import hmacSHA512 from "npm:crypto-js/hmac-sha512"; diff --git a/cli/tests/testdata/npm/nonexistent_file/main.out b/cli/tests/testdata/npm/nonexistent_file/main.out new file mode 100644 index 000000000..5f43f7242 --- /dev/null +++ b/cli/tests/testdata/npm/nonexistent_file/main.out @@ -0,0 +1,4 @@ +error: Unable to load [WILDCARD]hmac-sha512 imported from [WILDCARD]/testdata/npm/nonexistent_file/main.js + +Caused by: +[WILDCARD] -- cgit v1.2.3