Description
Describe the bug
The problem is that I can't get the coverage report for any project. I used a brand new cra project to test if something is wrong locally but I still have the same problem.
This is what I am supposed to see:
Taken from: https://create-react-app.dev/docs/running-tests/#coverage-reporting
And this is what I see instead:
Did you try recovering your dependencies?
I did.
yarn --version
1.19.1
Environment
Environment Info:
System:
OS: macOS 10.15
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Binaries:
Node: 12.12.0 - /usr/local/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.11.3 - /usr/local/bin/npm
Browsers:
Chrome: 77.0.3865.120
Firefox: 69.0
Safari: 13.0.2
npmPackages:
react: ^16.10.2 => 16.10.2
react-dom: ^16.10.2 => 16.10.2
react-scripts: 3.2.0 => 3.2.0
npmGlobalPackages:
create-react-app: 0.3.0
Steps to reproduce
- Create a new project using CRA
- You will see the 3.2.0 version of react-scripts
- Run npm test -- --coverage or yarn test --coverage
Expected behavior
I should see the coverage report including the App.js file.
Actual behavior
I see no file included in the report:
Reproducible demo
Just used the latest CRA version in an empty project.