ng test <project> --find-related-tests doesn't seem to work
See original GitHub issueIs your feature request related to a problem? Please describe.
On git commits I’d like to be able to run only related tests, using husky and lint-staged.
The problem is, when I run:
ng test <project> --find-related-tests ./src/source.js
I can see the path is treated as an option, and I get the error
Unknown option: './src/source.js'
For comparison, the following works fine, so I know this option and its value are being passed to JEST:
ng test <project> --testNamePattern="component"
(runs all specs with ‘component’ in the name)
Describe the solution you’d like I would like the path to be supported and passed to JEST
Describe alternatives you’ve considered I’m considering using husky/lint-staged to run a different batch of tests based on the changed files.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (7 by maintainers)
Top GitHub Comments
Sorry for the delay, I just checked. It works fine now, thanks.
It seems the schema has changed though, I had to update the options to solve these errors:
@just-jeb Sure, here it is: https://github.com/just-jeb/angular-builders/issues/1065