OpenPanel/packages/airtable/test/jest.setup.js

12 lines
269 B
JavaScript
Raw Permalink Normal View History

2024-05-08 17:58:53 +00:00
const fetch = require("node-fetch");
const nock = require("nock");
global.fetch = window.fetch = fetch;
global.Request = window.Request = fetch.Request;
global.Response = window.Response = fetch.Response;
afterAll(() => {
nock.cleanAll();
nock.restore();
});