Inline isomorphic-fetch test helper (#7945)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 4ad49ffd68
commit 2f3f605521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      package.json
  2. 7
      test/helper.js

@ -239,7 +239,6 @@
"gulp-watch": "^5.0.1",
"gulp-zip": "^4.0.0",
"http-server": "^0.11.1",
"isomorphic-fetch": "^2.2.1",
"jsdom": "^11.2.0",
"jsdom-global": "^3.0.2",
"karma": "^4.1.0",

@ -42,7 +42,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

Loading…
Cancel
Save