diff options
Diffstat (limited to 'tests/specs/test/junit_nested/main.ts')
| -rw-r--r-- | tests/specs/test/junit_nested/main.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/specs/test/junit_nested/main.ts b/tests/specs/test/junit_nested/main.ts new file mode 100644 index 000000000..128e48aef --- /dev/null +++ b/tests/specs/test/junit_nested/main.ts @@ -0,0 +1,23 @@ +Deno.test("parent 1", async (t) => { + await t.step("child 1", () => {}); + await t.step("child 2", () => { + throw new Error("Fail."); + }); +}); + +Deno.test("parent 2", async (t) => { + await t.step("child 1", async (t) => { + await t.step("grandchild 1", () => {}); + await t.step("grandchild 2", () => { + throw new Error("Fail."); + }); + }); + await t.step("child 2", () => { + throw new Error("Fail."); + }); +}); + +Deno.test("parent 3", async (t) => { + await t.step("child 1", () => {}); + await t.step("child 2", () => {}); +}); |
