summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/uncaught_errors_1.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/test/uncaught_errors_1.ts')
-rw-r--r--cli/tests/testdata/test/uncaught_errors_1.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/test/uncaught_errors_1.ts b/cli/tests/testdata/test/uncaught_errors_1.ts
new file mode 100644
index 000000000..166b23ac3
--- /dev/null
+++ b/cli/tests/testdata/test/uncaught_errors_1.ts
@@ -0,0 +1,9 @@
+Deno.test("foo 1", () => {
+ throw new Error("foo 1 message");
+});
+
+Deno.test("foo 2", () => {});
+
+Deno.test("foo 3", () => {
+ Promise.reject(new Error("foo 3 message"));
+});