Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Jest collectCoverageFrom option

See original GitHub issue

When Jest performs code coverage, it seems to only cover the files that were tested instead of all files in my source directory. This gives a skewed percentage of files tested.

Jest 15 added a new config option for this called `collectCoverageFrom``

Can we have support for this in CRA?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

gaearoncommented, Oct 11, 2016

We can add it to our config. Should it just look at app’s src/? Would you like to send a PR?

macktrixcommented, Oct 20, 2016

Any update on this ? Is the PR acceptable ? I notice its not CLA signed so does it need to be resubmitted ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

nrwl/nx - Support collectCoverageFrom option in JEST builder
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if...
Read more >
Configuring Jest
This option tells Jest that all imported modules in your tests should be mocked automatically. ... collectCoverageFrom [array]​.
Read more >
Configuring code coverage in Jest, the right way
If you're using Jest, here are three options that should always be present in your Jest configuration: collectCoverage; collectCoverageFrom ...
Read more >
Jest collectCoverageFrom and coverageThreshold not working
I have simple create react app. I've created jest.config.ts file because my project ...
Read more >
Configuring package.json · Jest
When using the --config option, the JSON file must not contain a "jest" key: ... collectCoverage [boolean]; collectCoverageFrom [array] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found