Skip to content

A Vite PWA + React + Typescript + Cypress starter template.

Notifications You must be signed in to change notification settings

josephgodwinkimani/vite-react-pwa-cypress

Repository files navigation

React + TypeScript + Vite PWA + Cypress

This template provides a minimal setup to get React working in Vite with HMR, Cypress for e2e/component testing and some ESLint useful rules.

Command List

Run development server:

$  pnpm run dev

Run linting:

$  pnpm run lint
# add --fix at the end to fix issues

Run cypress tests:

$  pnpm run test

Instrumenting code using battle-hardened Istanbul:

$  pnpm run instrument

See code coverage summary:

$  pnpm run test:cov

Generate test report:

$  pnpm run test:report

Generate test coverage report:

$  pnpm run test:cov

Build:

$  pnpm run build