Skip to content

Open-source Xbox-inspired desktop launcher for Xodus on Linux

TypeScript

test(accounts): bind notification fixture to jsdom storage

domsvobodaed77f5e6dcb7
diff --git a/src/renderer/multi-account.test.tsx b/src/renderer/multi-account.test.tsx
index 10f106b..a4fa87b 100644
--- a/src/renderer/multi-account.test.tsx
+++ b/src/renderer/multi-account.test.tsx
@@ -23,6 +23,7 @@ it('shows player credentials independently after Store sign-out and explains ful
it('keeps notification reads and broker acknowledgements scoped to the effective Xbox player', async () => {
vi.stubGlobal('IS_REACT_ACT_ENVIRONMENT', true);
+ vi.stubGlobal('localStorage', (globalThis as unknown as { jsdom: { window: Window } }).jsdom.window.localStorage);
const data = demoSnapshot();
data.auth = { ...data.auth, stored: true, username: 'shared-store', player: 'player-one' };
data.backend.capabilities.nativeSocial = true;