For my reactjs app, I'm adding integration tests to a view and want to keep an eye on coverage along the way. I'm currently getting all files on every run.
Question
While adding tests to increase coverage, how can I get jest coverage to show only files in a specific folder?
Examples tried
$
yarn test --collectCoverageFrom=src/app/components/ToolsTest run, bu no coverage is showing here.$
yarn test Tools --coverage --collectCoverageFrom=src/app/components/ToolsI getRan all test suites matching "Tools".$
yarn test src/app/components/Tools --coverage
Here I see the coverage percentage is smaller but still lists all files.$
yarn test -o --coverageAgain as the previous, I see the coverage percentage is smaller but still lists all files.