-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Documentation for filtering is very confusing. I tried every possible combination of options, but I wasn't able to set up filtering the way I want.
What I want:
- Collect coverage for all
*.tsand*.tsxfiles in my project'ssrc/folder (even for those files that weren't executed during a test run). - Exclude files in
__tests__folders. I do not want test files to show up in the report. - Exclude
testData.ts,*.test.ts, and*.test.tsxfiles. I do not want test files to show up in the report. - Exclude npm packages. I do not want third party files to show up in the report.
I tried every combination of all, filter, entryFilter, and sourceFilter options I could think of, but every time the result is unexpected.
I either get 0% coverage, or I get third party files in the report (like src/applyMiddleware.ts from Redux, or src/Components/Alert/Alert.tsx from a UI library).
And I just can't exclude test files like src/actions/main/__tests__/main.test.tsx.
I think this use case is very common, so it would be helpful for the community if you could provide an example configuration for it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels