Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.09 KB

File metadata and controls

23 lines (16 loc) · 1.09 KB

sample-react-app-with-custom-webpack-config

  • Focused on sample react application using custom-webpack-config and cypress code-coverage configuration with one sample test case.

Implementation:

Getting Started with Create React App

This project was bootstrapped with Create React App.

npx create-react-app simple-react-application-with-jsx

Source Code:

Steps to run application, run tests and check code-coverage report:

  1. npm install (To install all node modules)

  2. npm run dev (To run application)

  3. npx cypress open To run test: (Cypress test runner window will be opened. There select spec.js file to run tests.)

  4. Check Coverage Report in Project Directory:

    coverage/lcov-report/index.html

Reference: