Skip to main content

Pixwel UI - testing

Please read the UI overview before reading this. ui/3x has two test suites: Jest unit tests in tests/ and Cypress end-to-end tests in cypress/. (The legacy ui/2x app uses Karma/Jasmine.)

Running tests

From ui/3x:
pnpm test          # Jest unit tests, with coverage
pnpm jest          # Jest in watch mode
pnpm cypress       # open Cypress (E2E)
pnpm cypress:fast  # run Cypress headless

Code coverage

pnpm test runs Jest with --coverage and writes the report to coverage/. For any code you work on, aim for 100% coverage wherever possible.
Back to docs index | UI docs index | Next page in recommended reading order >>