From f9b167deb07a650590b7f1eef8fe86bf9e22d211 Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Fri, 18 Jan 2019 12:15:09 -0800 Subject: Avoid crashes on ES module resolution when module not found (#1546) --- tests/error_009_missing_js_module.js | 1 + tests/error_009_missing_js_module.js.out | 1 + tests/error_009_missing_js_module.test | 4 ++++ 3 files changed, 6 insertions(+) create mode 100644 tests/error_009_missing_js_module.js create mode 100644 tests/error_009_missing_js_module.js.out create mode 100644 tests/error_009_missing_js_module.test (limited to 'tests') 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 -- cgit v1.2.3