openpanel/packages/graphql/test/jest.setup.ts
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

14 lines
309 B
TypeScript

import nock from "nock";
import { writeFileSync } from "fs";
import { join } from "path";
// it's actually sending request to the server and print "mock" to console for you to copy and paste.
// nock.recorder.rec({
// use_separator: false,
// });
afterAll(() => {
nock.cleanAll();
nock.restore();
});