Skip to content

Commit 752fe4e

Browse files
committed
test(react): use named function in mockClerkCtor for vitest 4
1 parent fa408b6 commit 752fe4e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react/src/__tests__/isomorphicClerk.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ describe('isomorphicClerk', () => {
170170
load: vi.fn().mockResolvedValue(undefined),
171171
loaded: false,
172172
};
173-
const mockClerkCtor = vi.fn().mockImplementation(() => mockInstance);
173+
const mockClerkCtor = vi.fn().mockImplementation(function () {
174+
return mockInstance;
175+
});
174176
mockClerkCtor.prototype = {};
175177

176178
const clerk = new IsomorphicClerk({

0 commit comments

Comments
 (0)