analytics/assets/test-utils/reset-state.ts
Artur Pata 8af3f7332a
Add testing framework (#4440)
* Add testing framework

* Test query period picking behaviour
2024-08-15 12:27:22 +03:00

14 lines
229 B
TypeScript

/** @format */
/**
* @returns clears the state that the app stores,
* to avoid individual tests impacting each other
*/
function clearStoredAppState() {
localStorage.clear()
}
beforeEach(() => {
clearStoredAppState()
})