summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/steps/failing_steps.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/test/steps/failing_steps.ts')
-rw-r--r--cli/tests/testdata/test/steps/failing_steps.ts27
1 files changed, 0 insertions, 27 deletions
diff --git a/cli/tests/testdata/test/steps/failing_steps.ts b/cli/tests/testdata/test/steps/failing_steps.ts
deleted file mode 100644
index efa18d54e..000000000
--- a/cli/tests/testdata/test/steps/failing_steps.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-Deno.test("nested failure", async (t) => {
- const success = await t.step("step 1", async (t) => {
- let success = await t.step("inner 1", () => {
- throw new Error("Failed.");
- });
- if (success) throw new Error("Expected failure");
-
- success = await t.step("inner 2", () => {});
- if (!success) throw new Error("Expected success");
- });
-
- if (success) throw new Error("Expected failure");
-});
-
-Deno.test("multiple test step failures", async (t) => {
- await t.step("step 1", () => {
- throw new Error("Fail.");
- });
- await t.step("step 2", () => Promise.reject(new Error("Fail.")));
-});
-
-Deno.test("failing step in failing test", async (t) => {
- await t.step("step 1", () => {
- throw new Error("Fail.");
- });
- throw new Error("Fail test.");
-});