Skip to content

[Feature]: make @jest/types an optional peer dependency #3689

@notaphplover

Description

@notaphplover

🚀 Feature Proposal

Just like other dependencies, it would be good to have @jest/types as an optional peer dependency:

package.json

"peerDependenciesMeta": {
  "@jest/types": {
    "optional": true
  }
}

Motivation

It seems not to be necessary to use @jest/types to get jest types. Docs uses @jest/globals to use the new mock syntax. Since it's possible to use jest in a ts project without @jest/types, it makes sense to me to update this peer dependency to be optional.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions