Skip to content

Latest commit

 

History

History
 
 

react-scripts-v3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

example: react-scripts v3

This example instruments the React application that is using react-scripts v3 to run

use

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__.

Code coverage

Run Cypress tests

npm test

The output should be saved in reports in the coverage folder.

open coverage/lcov-report/index.html

Code coverage report

Notes

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.