From 6516172a6b6fd801614f808b25eb80d85e61ae6e Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Thu, 2 Apr 2026 12:47:48 +0300 Subject: [PATCH] test(auth): add token store reset after each test --- src/features/auth/model/stores/authStore/authStore.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/features/auth/model/stores/authStore/authStore.spec.ts b/src/features/auth/model/stores/authStore/authStore.spec.ts index d25d6bb..1cc8ef8 100644 --- a/src/features/auth/model/stores/authStore/authStore.spec.ts +++ b/src/features/auth/model/stores/authStore/authStore.spec.ts @@ -6,6 +6,7 @@ import { MOCK_NEW_EMAIL, MOCK_PASSWORD, } from "../../../api/calls/mocks"; +import { useTokenStore } from "shared/api"; const server = setupServer( apiCalls.loginMock, @@ -21,6 +22,7 @@ describe("authStore", () => { beforeAll(() => server.listen({ onUnhandledRequest: "error" })); afterEach(() => { useAuthStore.getState().reset(); + useTokenStore.getState().reset(); server.resetHandlers(); }); afterAll(() => server.close());