diff --git a/test/test-setup.js b/test/test-setup.js new file mode 100644 index 0000000..e0b1104 --- /dev/null +++ b/test/test-setup.js @@ -0,0 +1,11 @@ +/* eslint-env mocha */ +const nock = require('nock') + +beforeEach(function () { + nock.disableNetConnect() +}) + +afterEach(function () { + nock.cleanAll() + nock.enableNetConnect() +})