From a8543e3ad1b74ed9e875cbdbb276b6a7972ce952 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Fri, 5 Jul 2024 11:55:54 +0200 Subject: [PATCH] WIP --- cli/js/40_test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cli/js/40_test.js b/cli/js/40_test.js index 5029b57339..de72b4e6ca 100644 --- a/cli/js/40_test.js +++ b/cli/js/40_test.js @@ -594,6 +594,11 @@ if (Deno.env.get("NODE_ENV") === undefined) { Deno.env.set("NODE_ENV", "test"); } +function beforeEach(fn) { +} +function afterEach(fn) { +} + const jest = { spy(fn) { }, @@ -606,3 +611,5 @@ globalThis.describe = describe; globalThis.it = it; globalThis.before = beforeAll; globalThis.beforeAll = beforeAll; +globalThis.beforeEach = beforeEach; +globalThis.afterEach = afterEach;