ci: Block all external network calls in tests (no-changelog) (#4930)

* setup nock to prevent tests from making any external requests

* mock all calls to posthog sdk
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-12-14 15:28:41 +01:00
committed by GitHub
parent 2964458191
commit d5b06ab3d6
5 changed files with 29 additions and 0 deletions

View File

@@ -45,6 +45,7 @@
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-mock": "^29.3.1",
"nock": "^13.2.9",
"node-fetch": "^2.6.7",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",