Testing¶
This guide is the entry point for testing Rezi apps and framework changes.
Quick start¶
Run the deterministic suite:
Run package tests only:
Run script tests only:
Filter to a subset:
--filter matches a literal substring in the discovered relative test file
paths.
What to test¶
- Unit behavior for pure helpers and validators.
- Integration behavior for rendering, routing, and event flow.
- Regression coverage for bugs (repro test first, then fix).
- Snapshot/visual stability for renderer-facing changes.
- Responsive behavior validation across multiple viewport sizes (
**/*.test.{ts,tsx,js,jsx}).
Renderer and widget tests¶
For high-level widget assertions, prefer createTestRenderer() so tests can use:
findById(...)findAll(...)findText(...)toText()
Snapshot workflow¶
Use the snapshot CLI:
UI regression validation¶
For layout/theme/render regressions, include a live PTY run with frame-audit evidence: