Skip to content

Commit

Permalink
Inline isomorphic-fetch test helper (#7945)
Browse files Browse the repository at this point in the history
  • Loading branch information
whymarrh authored Jan 30, 2020
1 parent 4ad49ff commit 2f3f605
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion test/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f3f605

Please sign in to comment.