cal.pub0.org/setupVitest.ts

8 lines
220 B
TypeScript
Raw Permalink Normal View History

import { vi } from "vitest";
import createFetchMock from "vitest-fetch-mock";
const fetchMocker = createFetchMock(vi);
// sets globalThis.fetch and globalThis.fetchMock to our mocked version
fetchMocker.enableMocks();