From c9ddd1e0cd5cf212676b64cd1872df0876d89668 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Wed, 18 Dec 2024 15:31:11 +0300 Subject: [PATCH] Patch `.each` --- vitest-jest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vitest-jest.js b/vitest-jest.js index 2d5e261c..ede18b8d 100644 --- a/vitest-jest.js +++ b/vitest-jest.js @@ -21,7 +21,7 @@ module.exports = new Proxy(require('@jest/globals'), { }; describeFn.each = function describeEach(table) { return jestGlobals.describe.each(table); - } + }; return describeFn; } if (prop === 'it') { @@ -39,7 +39,7 @@ module.exports = new Proxy(require('@jest/globals'), { }; itFn.each = function itEach(table) { return jestGlobals.it.each(table); - } + }; return itFn; } return Reflect.get(jestGlobals, prop, receiver);