Skip to content

Jest coverage showing polyfills.js #987

New issue

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

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

Already on GitHub? # to your account

Closed
rubenmoya opened this issue Oct 30, 2016 · 2 comments
Closed

Jest coverage showing polyfills.js #987

rubenmoya opened this issue Oct 30, 2016 · 2 comments
Milestone

Comments

@rubenmoya
Copy link

Hi! I just created a new application, and ejected it to use css-modules.

After adding a few tests and running npm test -- --coverage this is the result:

screen shot 2016-10-30 at 11 19 54

Should the polyfills.js file be there?

@fson fson added this to the 0.8.0 milestone Oct 30, 2016
@fson
Copy link
Contributor

fson commented Oct 30, 2016

This was fixed by #961. To fix it in your ejected project, just add the following to your Jest config:

"collectCoverageFrom": [
  "src/**/*.{js,jsx}"
],

@fson fson closed this as completed Oct 30, 2016
@rubenmoya
Copy link
Author

Thank you @fson!

@lock lock bot locked and limited conversation to collaborators Jan 22, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants