From cfd05d028ea52ba18ff6efed8f12ad09900ba21e Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 25 Dec 2022 22:33:49 +0100 Subject: [PATCH] Add hooks to tests. --- tests/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/index.ts b/tests/index.ts index c930e64..a1215aa 100644 --- a/tests/index.ts +++ b/tests/index.ts @@ -35,6 +35,14 @@ void setup("add", async (group) => { }); void setup("subtract", async (group) => { + group.beforeAll(async () => { + console.log("subtract beforeAll hook"); + }); + + group.afterAll(async () => { + console.log("subtract afterAll hook"); + }); + group.test("subtract(1, 1) = 0", async (test) => { test.equals(await subtract(1, 1), 0); });