Next Steps

What you'll learn

  • how to start introducing test in your work
  • when to write a test
  • generating code coverage report

Generating Code Coverage Report

Add a new scripts in package.json:

package.json
json
{
...
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"test:ci": "react-scripts test --coverage --ci --watchAll=false",

"eject": "react-scripts eject",
"start:docs": "styleguidist server",
"build:docs": "styleguidist build"
}
...
}

Issue on this page? Report here