OpenPanel/packages/airtable/test/jest.setup.js
Stefan Pejcic 8595a9f4e5 back
2024-05-08 19:58:53 +02:00

12 lines
269 B
JavaScript

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();
});