diff --git a/package.json b/package.json index 5525cdcacb0e..b680e2d227bc 100644 --- a/package.json +++ b/package.json @@ -258,7 +258,6 @@ "gulp-zip": "^4.0.0", "http-server": "^0.11.1", "husky": ">=1", - "isomorphic-fetch": "^2.2.1", "jsdom": "^11.2.0", "jsdom-global": "^3.0.2", "karma": "^4.1.0", diff --git a/test/helper.js b/test/helper.js index 17aee21c0071..25db91f35de9 100644 --- a/test/helper.js +++ b/test/helper.js @@ -59,7 +59,12 @@ global.log = log // // fetch -global.fetch = require('isomorphic-fetch') +const fetch = require('node-fetch') + +global.fetch = fetch +global.Response = fetch.Response +global.Headers = fetch.Headers +global.Request = fetch.Request require('abortcontroller-polyfill/dist/polyfill-patch-fetch') // dom