Skip to content

Commit 4cbb345

Browse files
committed
chore: fix test
1 parent 33b774c commit 4cbb345

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ beforeAll(async () => {
1010
if (semver.lt(nodeVersion, '18.0.0')) {
1111
const nodeFetch = await import('node-fetch')
1212

13-
// @ts-expect-error
13+
// @ts-ignore Expected type mismatch between native implementation and node-fetch
1414
globalThis.fetch = nodeFetch.default
15-
globalThis.Headers = nodeFetch.Headers
16-
// @ts-expect-error
15+
// @ts-ignore Expected type mismatch between native implementation and node-fetch
1716
globalThis.Request = nodeFetch.Request
18-
// @ts-expect-error
17+
// @ts-ignore Expected type mismatch between native implementation and node-fetch
1918
globalThis.Response = nodeFetch.Response
19+
globalThis.Headers = nodeFetch.Headers
2020
}
2121
})
2222

0 commit comments

Comments
 (0)