diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/helper.js | 4 |
1 files changed, 4 insertions, 0 deletions
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() |