DEV Community

Discussion on: Stop Overcomplicating your State – Try Zustand

Collapse
 
radesai profile image
Raj Ashish Desai

You mentioned in the afterEach()
// You can chose to set the store's state to a default value here.
How would we redfine the store state? From test to test my state is carrying over and polluting the next tests