When I import and use jest-environment-jsdom in my project, using Typescript to build will receive a message error:
TS2416: Property 'global' in type 'JSDOMEnvironment' is not assignable to the same property in base type 'JestEnvironment'.
It's an error when build to publish right?
In types of build missing a comment // @ts-ignore, check here:
https://unpkg.com/[email protected]/build/index.d.ts
Ah, I didn't know ignores were not emitted... (https://github.com/Microsoft/TypeScript/issues/20360)
We should make sure this works properly in Jest 25.
A PR fixing the type issue is very much welcome, of course!
@SimenB I created a PR to fix it, please review and give me a comment. Thank you very much!