fix: mock localStorage in test setup for Zustand persist middleware

This commit is contained in:
Pouzor
2026-03-07 00:47:51 +01:00
parent 0bd714a68b
commit 923f0c0c22
2 changed files with 14 additions and 0 deletions
@@ -3,6 +3,7 @@ import { useAuthStore } from '@/stores/authStore'
describe('authStore', () => {
beforeEach(() => {
localStorage.clear()
useAuthStore.setState({ token: null, isAuthenticated: false })
})