From 2f3f605521618682f8edae2dad373ca3c3a984f3 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Wed, 29 Jan 2020 21:31:32 -0330 Subject: [PATCH] Inline isomorphic-fetch test helper (#7945) --- package.json | 1 - test/helper.js | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f15be0215..0f650db67 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/helper.js b/test/helper.js index 7d0df1745..38cdb6bfd 100644 --- a/test/helper.js +++ b/test/helper.js @@ -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