Skip to content

Commit 7c37f27

Browse files
committed
Fix session mock on unit tests
1 parent 9865e72 commit 7c37f27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/clerk-js/src/core/__tests__/clerk.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,7 @@ describe('Clerk singleton', () => {
23502350
reload: jest.fn(() => Promise.resolve(mockSession)),
23512351
};
23522352

2353-
beforeAll(() => {
2353+
beforeEach(() => {
23542354
mockResource.touch.mockReturnValueOnce(Promise.resolve());
23552355
mockClientFetch.mockReturnValue(Promise.resolve({ signedInSessions: [mockResource] }));
23562356
});

packages/clerk-js/src/core/clerk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ import type {
3030
AuthenticateWithGoogleOneTapParams,
3131
AuthenticateWithMetamaskParams,
3232
AuthenticateWithOKXWalletParams,
33+
Clerk as ClerkInterface,
3334
ClerkAPIError,
3435
ClerkAuthenticateWithWeb3Params,
35-
Clerk as ClerkInterface,
3636
ClerkOptions,
3737
ClientJSONSnapshot,
3838
ClientResource,

0 commit comments

Comments
 (0)