mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
14 lines
309 B
TypeScript
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();
|
|
});
|