fix(tests): iteration 5

This commit is contained in:
Mohamed Boudra
2026-03-13 13:42:51 +07:00
parent 44fc4bfeff
commit 40b9b4672e
3 changed files with 71 additions and 37 deletions
@@ -0,0 +1,14 @@
import { afterEach, describe, expect, it } from "vitest";
import { __setAttachmentStoreForTests, getAttachmentStore } from "./store";
describe("attachment store", () => {
afterEach(() => {
__setAttachmentStoreForTests(null);
});
it("creates the default web attachment store without runtime module resolution errors", async () => {
const store = await getAttachmentStore();
expect(store.storageType).toBe("web-indexeddb");
});
});