Skip to content

Type conflicts between @types/jest and jest #1938

@villasv

Description

@villasv

💬 Questions and Help

I've just realized that the global jest variables in my project are being typed using @types/jest, which is installed as a dependency by ts-jest. On the other hand, I wanted to use the official jest types as they are a bit more up to date with my needs (e.g. beforeAll returning void instead of any).

Is this intended behavior? Or more importantly, can I work around it and make the globals types also come from jest?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions