Skip to content

Support *.ts files for node --test  #55078

@ThePlenkov

Description

@ThePlenkov

What is the problem this feature will solve?

I would like to use tests using typescript, not js. Currently if I run node --test it finds nothing.

What is the feature you are proposing to solve the problem?

node --test would pick up also typescript files and execute them since typescript now is experimentally supported

What alternatives have you considered?

Of course tools like jest or vitest can do this out-of-the-box but I would really love to write native tests to have zero dependency on thridparty libraries, just pure node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.strip-typesIssues or PRs related to strip-types supporttest_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions