MCPcopy
hub / github.com/coder/mux / readStoredTutorialState

Function readStoredTutorialState

src/browser/contexts/TutorialContext.test.tsx:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35function readStoredTutorialState(): TutorialState | null {
36 const raw = window.localStorage.getItem(TUTORIAL_STATE_KEY);
37 if (!raw) {
38 return null;
39 }
40
41 return JSON.parse(raw) as TutorialState;
42}
43
44describe("TutorialContext", () => {
45 let originalWindow: typeof globalThis.window;

Callers 1

Calls 2

getItemMethod · 0.65
parseMethod · 0.45

Tested by

no test coverage detected