Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest coverage for all folders #293

Open
robinxb opened this issue May 31, 2019 · 0 comments
Open

Jest coverage for all folders #293

robinxb opened this issue May 31, 2019 · 0 comments

Comments

@robinxb
Copy link

robinxb commented May 31, 2019

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 😃

robinxb added a commit to robinxb/typescript-library-starter that referenced this issue May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant