fix: mock localStorage in test setup for Zustand persist middleware
This commit is contained in:
@@ -3,6 +3,7 @@ import { useAuthStore } from '@/stores/authStore'
|
||||
|
||||
describe('authStore', () => {
|
||||
beforeEach(() => {
|
||||
localStorage.clear()
|
||||
useAuthStore.setState({ token: null, isAuthenticated: false })
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user