wipeLocalData test: lint-clean never-settling store
All checks were successful
Build pull request / Build pull request (pull_request) Successful in 3m23s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Void 2026-11-13 19:13:14 +00:00
commit cd30c3dc40

View file

@ -95,7 +95,12 @@ describe('wipeLocalData', () => {
});
it('a client store that never closes holds the wipe only for the timeout, then storage is cleared', async () => {
const r = rig({ databases: async () => [{ name: 'a' }] });
const mx = { clearStores: () => new Promise<void>(() => undefined) } as never;
const mx = {
clearStores: () =>
new Promise<void>(() => {
// never settles
}),
} as never;
await wipeLocalData(mx, { ...r.ports, clearStoresTimeoutMs: 10 });
expect(r.deleted).toEqual(['a']);
expect(r.cleared()).toBe(1);