1
0
Fork 0
mirror of https://github.com/n8n-io/n8n.git synced 2025-02-21 02:56:40 -08:00
n8n/packages/cli/test/setup.ts
कारतोफ्फेलस्क्रिप्ट™ d5b06ab3d6
ci: Block all external network calls in tests (no-changelog) ()
* setup nock to prevent tests from making any external requests

* mock all calls to posthog sdk
2022-12-14 15:28:41 +01:00

7 lines
122 B
TypeScript

import nock from 'nock';
export default async () => {
nock.disableNetConnect();
nock.enableNetConnect('127.0.0.1');
};