alexjoverm / alexjoverm/typescript-library-starter

Jest coverage for all folders

Open
#293 0 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.