summaryrefslogtreecommitdiff
path: root/cli/tests/run_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/run_tests.rs')
-rw-r--r--cli/tests/run_tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/run_tests.rs b/cli/tests/run_tests.rs
index 092546aaf..d90a48fbb 100644
--- a/cli/tests/run_tests.rs
+++ b/cli/tests/run_tests.rs
@@ -2945,6 +2945,19 @@ mod run {
output: "run/unhandled_rejection_sync_error.ts.out",
});
+ // Regression test for https://github.com/denoland/deno/issues/15661
+ itest!(unhandled_rejection_dynamic_import {
+ args: "run --allow-read run/unhandled_rejection_dynamic_import/main.ts",
+ output: "run/unhandled_rejection_dynamic_import/main.ts.out",
+ exit_code: 1,
+ });
+
+ // Regression test for https://github.com/denoland/deno/issues/16909
+ itest!(unhandled_rejection_dynamic_import2 {
+ args: "run --allow-read run/unhandled_rejection_dynamic_import2/main.ts",
+ output: "run/unhandled_rejection_dynamic_import2/main.ts.out",
+ });
+
itest!(nested_error {
args: "run run/nested_error.ts",
output: "run/nested_error.ts.out",