refactor: stop persisting workspace state in the browser

This commit is contained in:
2026-08-14 17:43:10 +02:00
parent 3978008aed
commit fd3b62ce6f
11 changed files with 101 additions and 310 deletions
+2
View File
@@ -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());