Skip to content

Commit 12be9f8

Browse files
committed
fix fetch
1 parent c14caae commit 12be9f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jest.globals.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
globalThis.fetch = require('node-fetch')
1+
const nodeFetch = require('node-fetch')
2+
3+
globalThis.fetch = nodeFetch
4+
globalThis.Request = nodeFetch.Request
5+
globalThis.Response = nodeFetch.Response

0 commit comments

Comments
 (0)