1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/tests/specs/test/junit_nested/main.ts
HasanAlrimawi e0b9c745c1
chore: deprecate test itests (#25512)
This PR is part of #22907

---------

Signed-off-by: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-09-16 19:38:40 +00:00

23 lines
548 B
TypeScript

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", () => {});
});