10 lines
143 B
TypeScript
10 lines
143 B
TypeScript
const mockFetch = jest.fn()
|
|
|
|
const enable = () => {
|
|
jest.mock("node-fetch", () => mockFetch)
|
|
}
|
|
|
|
export default {
|
|
...mockFetch,
|
|
enable,
|
|
}
|