Skip to content

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