import { test, expect } from "@jest/globals"; import { InMemoryCache } from "../index.js"; test("InMemoryCache", async () => { const cache = new InMemoryCache(); await cache.update("foo", "bar", [{ text: "baz" }]); expect(await cache.lookup("foo", "bar")).toEqual([{ text: "baz" }]); });