Does not work with Create React App
See original GitHub issueHey,
I have followed the official docs but yet unable to make it work with my react app. I use create-react-app utility and not webpack and babel. It does create coverage and .nyc_output folder but no coverage is being calculated.
npx nyc report --reporter=text-summary
=========== Coverage summary ===============================
Statements : Unknown% ( 0/0 )
Branches : Unknown% ( 0/0 )
Functions : Unknown% ( 0/0 )
Lines : Unknown% ( 0/0 )
==============================================================
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Create React App not working - Stack Overflow
1. update the npm version (npm install npm@latest -g) · 2. clear the cache (npm cache clean --force) · 3. create the react...
Read more >What To Do if create-react-app Doesn't Work
1. npm uninstall -g create-react-app. This is the npm command to uninstall your global installation of create-react-app .
Read more >npx create-react-app not working? Here's the solution.
The current solution is simple — run create-react-app and target the latest version. Run creact-react-app using the latest version. npx create- ...
Read more >npx create-react-app is not working · Issue #10132 - GitHub
I am able to solve the problem by first trying to uninstall the npm globally, update the npm, clear the cache then using...
Read more >The problem with adopting create-react-app for production
But in real life, your application will not stay within the proposed limits of the create-react-app framework. Sooner or later, your app will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@judsoncarver See a couple of TypeScript examples linked in https://github.com/cypress-io/code-coverage#examples Since TS files are NOT automatically included in the report, you need to add NYC settings like https://github.com/lluia/cypress-typescript-coverage-example/blob/master/package.json#L13 I think
You can use https://github.com/cypress-io/instrument-cra to instrument CRA v3 apps without ejecting the scripts