mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Inline isomorphic-fetch test helper (#7945)
This commit is contained in:
parent
4ad49ffd68
commit
2f3f605521
@ -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…
Reference in New Issue
Block a user