neotest-jest icon indicating copy to clipboard operation
neotest-jest copied to clipboard

Add support for file path patterns

Open carlosflorencio opened this issue 2 years ago • 1 comments

When running against a file require("neotest").run.run(path), the file type is file and we should filter the test runner to target only that file (else the pattern will be --testNamePattern='.*' == all tests).

This change makes the test runner pattern --testPathPattern='filename.ts' when the type is file.

carlosflorencio avatar Jan 09 '23 23:01 carlosflorencio

LGTM probably just need to fix up UT

haydenmeade avatar Jan 26 '23 23:01 haydenmeade