refactor: stop persisting workspace state in the browser
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import "@testing-library/jest-dom/vitest";
|
||||
import { server } from "./msw";
|
||||
import { workspacePreferences } from "../workspaces/preferences";
|
||||
|
||||
// Node 25 ships an experimental global `localStorage` that shadows jsdom's Storage and
|
||||
// lacks spec methods like clear(), so tests calling localStorage.clear()/setItem() throw.
|
||||
@@ -37,5 +38,6 @@ if (!window.matchMedia) {
|
||||
}
|
||||
|
||||
beforeAll(() => server.listen());
|
||||
beforeEach(() => workspacePreferences.reset());
|
||||
afterEach(() => server.resetHandlers());
|
||||
afterAll(() => server.close());
|
||||
|
||||
Reference in New Issue
Block a user