8 lines
220 B
TypeScript
8 lines
220 B
TypeScript
|
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();
|