Skip to content

Sample react application using jsx and cypress code-coverage configuration with one sample test case.

Notifications You must be signed in to change notification settings

Prashika/sample-react-jsx-app-with-cypress-integration

Repository files navigation

Sample react application with jsx using default webpack-config

  • Focused on react application with jsx using default 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:

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you edit source code.
You will also see any lint errors in the console.

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

  1. yarn install (To install all node modules)

  2. yarn start (To run application)

  3. yarn run 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:

About

Sample react application using jsx and cypress code-coverage configuration with one sample test case.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published