test: type the pinned pairing store in the disposal tests

This commit is contained in:
Linus Rath
2026-10-31 23:57:27 +01:00
parent 933d26f0fe
commit fedbd650bf
+1 -1
View File
@@ -51,7 +51,7 @@ let store: ReturnType<typeof switchableSharedStore>;
*/
async function replica(disposer?: (grant: PairingGrant) => void) {
vi.resetModules();
const pinned = (globalThis as Record<string, { sweepTimer?: ReturnType<typeof setInterval> } | undefined>).__bulwarkPairingStore;
const pinned = (globalThis as unknown as Record<string, { sweepTimer?: ReturnType<typeof setInterval> } | undefined>).__bulwarkPairingStore;
if (pinned?.sweepTimer) clearInterval(pinned.sweepTimer);
delete (globalThis as Record<string, unknown>).__bulwarkPairingStore;
const mod = await import('@/lib/auth/pairing-store');