Skip to content

[Feature]: Please export @jest/globals into global namespace #13196

@zyf0330

Description

@zyf0330

🚀 Feature Proposal

Now, if want to use expect etc, user must import @jest/globals manually in every test file. And, some types in the @types/jest are not correct. So if @jest/globals can define inside types in the global namespace, user can import this package at tsconfig.json types for just tests excluding src.

Motivation

Give users more precise type.

Example

No response

Pitch

Because @jest/globals is maintained by Jest.

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