We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b774c commit 4cbb345Copy full SHA for 4cbb345
src/main.test.ts
@@ -10,13 +10,13 @@ beforeAll(async () => {
10
if (semver.lt(nodeVersion, '18.0.0')) {
11
const nodeFetch = await import('node-fetch')
12
13
- // @ts-expect-error
+ // @ts-ignore Expected type mismatch between native implementation and node-fetch
14
globalThis.fetch = nodeFetch.default
15
- globalThis.Headers = nodeFetch.Headers
16
17
globalThis.Request = nodeFetch.Request
18
19
globalThis.Response = nodeFetch.Response
+ globalThis.Headers = nodeFetch.Headers
20
}
21
})
22
0 commit comments