fix: update keystore nullish check

This commit is contained in:
Your Name
2026-04-12 14:40:23 +05:30
parent 118a73d4aa
commit 6d5bc3ca09
3 changed files with 69 additions and 16 deletions
+1 -10
View File
@@ -1,17 +1,8 @@
import "@testing-library/jest-dom";
import { IDBFactory } from "fake-indexeddb";
import "fake-indexeddb/auto"; // auto configures the indexedDB
import { afterAll, afterEach, beforeAll } from "vitest";
import { server } from "./mocks/server";
/**
* faking indexeddb in memory for testing crypto key storage
*/
Object.defineProperty(globalThis, "indexedDB", {
value: new IDBFactory(),
writable: true,
configurable: true,
});
beforeAll(() => server.listen({ onUnhandledRequest: "warn" }));
afterEach(() => server.resetHandlers());
afterAll(() => server.close());