summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/error_009_missing_js_module.js1
-rw-r--r--tests/error_009_missing_js_module.js.out1
-rw-r--r--tests/error_009_missing_js_module.test4
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/error_009_missing_js_module.js b/tests/error_009_missing_js_module.js
new file mode 100644
index 000000000..e6ca88934
--- /dev/null
+++ b/tests/error_009_missing_js_module.js
@@ -0,0 +1 @@
+import "./bad-module.js";
diff --git a/tests/error_009_missing_js_module.js.out b/tests/error_009_missing_js_module.js.out
new file mode 100644
index 000000000..1bcd9099e
--- /dev/null
+++ b/tests/error_009_missing_js_module.js.out
@@ -0,0 +1 @@
+NotFound: Cannot resolve module "./bad-module.js" from "[WILDCARD]/tests/error_009_missing_js_module.js"
diff --git a/tests/error_009_missing_js_module.test b/tests/error_009_missing_js_module.test
new file mode 100644
index 000000000..b16bb232b
--- /dev/null
+++ b/tests/error_009_missing_js_module.test
@@ -0,0 +1,4 @@
+args: tests/error_009_missing_js_module.js
+check_stderr: true
+exit_code: 1
+output: tests/error_009_missing_js_module.js.out \ No newline at end of file