This example instruments the React application that is using react-scripts v3 to run
First, install the dependencies in the root folder of this repository
Second, install dependencies here
npm install
Start the application
npm start
The application should be instrumented, which you can check in the browser at localhost:3000
by looking at the object window.__coverage__
.
Run Cypress tests
npm test
The output should be saved in reports in the coverage
folder.
open coverage/lcov-report/index.html
react-scripts
after v3.4.0 have a bug, and stop the dev server immediately. The pull request to fix it was ignored and closed. Thus we in the package.json file we set the version to 3.4.0 for now.