fetch-mock-cache
Version:
Caching mock fetch implementation for all runtimes and frameworks.
9 lines (8 loc) • 360 B
JavaScript
import { describe } from "node:test";
import createFetchCache from "../runtimes/node.js";
import { createTestsForMock } from "../testUtils.js";
import MemoryStore from "./memory.js";
const memoryCacheMock = createFetchCache({ Store: MemoryStore });
describe("memoryStore", () => {
describe("standard tests", () => createTestsForMock(memoryCacheMock));
});