From 3d9f283f8720d5a2d1fb0cdd13ec4c95706866e5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 30 Jul 2018 06:27:25 -0700 Subject: [PATCH] Disallow netConnections other than localhosts --- test/helper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/helper.js b/test/helper.js index 2225be37a..51f28de17 100644 --- a/test/helper.js +++ b/test/helper.js @@ -1,7 +1,11 @@ const Ganache = require('ganache-core') +const nock = require('nock') import Enzyme from 'enzyme' import Adapter from 'enzyme-adapter-react-15' +nock.disableNetConnect() +nock.enableNetConnect('localhost') + Enzyme.configure({ adapter: new Adapter() }) // disallow promises from swallowing errors enableFailureOnUnhandledPromiseRejection()