Files
outline/server/__mocks__/fetch-with-proxy.ts
2022-06-30 10:37:06 +02:00

10 lines
270 B
TypeScript

import fetchMock from "jest-fetch-mock";
fetchMock.enableMocks();
// changes default behavior of fetchMock to use the real 'fetch' implementation.
// Mocks can now be enabled in each individual test with fetchMock.doMock()
fetchMock.dontMock();
export default fetch;