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 showing polyfills.js #987

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants