Skip to content

Error when use jest-environment-jsdom in Typescript #8347

@lh0x00

Description

@lh0x00

🐛 Bug Report

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?

To Reproduce

In types of build missing a comment // @ts-ignore, check here:
https://unpkg.com/[email protected]/build/index.d.ts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions