()
| 33 | } |
| 34 | |
| 35 | function 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 | |
| 44 | describe("TutorialContext", () => { |
| 45 | let originalWindow: typeof globalThis.window; |
no test coverage detected