1
0
Fork 0
mirror of synced 2024-09-19 10:48:30 +12:00
budibase/packages/backend-core/tests/utilities/mocks/fetch.ts

11 lines
143 B
TypeScript
Raw Normal View History

const mockFetch = jest.fn()
2022-11-17 02:06:30 +13:00
const enable = () => {
jest.mock("node-fetch", () => mockFetch)
}
export default {
...mockFetch,
enable,
}