Skip to content

[Feature]: Allow usage of tsm instead of ts-node? #11989

@karlhorky

Description

@karlhorky

🚀 Feature Proposal

Jest allows for configuration in TypeScript via ts-node:

https://github.com/facebook/jest/blob/7f39f0a589703191a0cd3c6db558920281f7195f/docs/Configuration.md?plain=1#L37

It would be great to also enable support for tsm

Motivation

  • tsm is lighter weight and faster than ts-node
  • if projects are already using tsm for other tasks, it would be nice to not have to also install ts-node only for Jest

Example

No response

Pitch

Not entirely sure I understand this field, but maybe:

It fits Jest's ideology of being fast and enabling modern techniques

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