Skip to content

--findRelatedTests for node:test #42992

Closed as not planned
Closed as not planned
@bestickley

Description

@bestickley

What is the problem this feature will solve?

I use lintstaged to run only the unit tests related to changed source files on each commit. I currently use jest with their CLI flag: --findRelatedTests (https://jestjs.io/docs/cli#--findrelatedtests-spaceseparatedlistofsourcefiles). Could something similar be added to node:test?

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

--findRelatedTests CLI flag

What alternatives have you considered?

Sticking with Jest or creating my own helper function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.staletest_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