chore: fix the fetch method

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-06-13 17:30:00 +02:00
parent ed290e2730
commit a63e691502
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import JSDOMEnvironment from 'jest-environment-jsdom';
import { Headers, Request, Response, fetch } from 'node-fetch';
import { Headers, Request, Response, default as fetch } from 'node-fetch';
// https://github.com/facebook/jest/blob/v29.4.3/website/versioned_docs/version-29.4/Configuration.md#testenvironment-string
export default class FixJSDOMEnvironment extends JSDOMEnvironment {