alexjoverm / alexjoverm/typescript-library-starter
Jest coverage for all folders
Open
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 477
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Instead of using
```
"collectCoverageFrom": [
"src/*.{js,ts}"
]
```
Which only coverage the files under `src`, **not including** files in subfolders.
I suggest that change it into:
```
"collectCoverageFrom": [
"src/**/*.{js,ts}"
]
```
I took sometime to figure this out since I'm new to Jest.
Hope this will help others like me.
I've created a PR if you agreed with me 😃
Contributor guide
Assessment
This issue has not been assessed yet.