summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/fix_dynamic_import_errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/run/fix_dynamic_import_errors.js')
-rw-r--r--cli/tests/testdata/run/fix_dynamic_import_errors.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/fix_dynamic_import_errors.js b/cli/tests/testdata/run/fix_dynamic_import_errors.js
new file mode 100644
index 000000000..1d7be37e0
--- /dev/null
+++ b/cli/tests/testdata/run/fix_dynamic_import_errors.js
@@ -0,0 +1,7 @@
+import("../dynamic_import/b.js").catch(() => {
+ console.log("caught import error from b.js");
+});
+
+import("../dynamic_import/c.js").catch(() => {
+ console.log("caught import error from c.js");
+});