🎨 Frontend
Testing
Zustand Test

Resetting store for each test case

const initialStoreState = useStore.getState();
describe('MyComponent', () => {
  beforeEach(() => {
    useStore.setState(initialStoreState, true);
  });

Ref (opens in a new tab)