Unit Testing (Vitest)
Vitest tests exactly what the code computes mathematically behind the scenes.
How It Works
Vitest runs fast tests on individual functions and React components in isolation, simulating a browser environment without the overhead of launching a real Chromium engine.
Utilities
Complex pricing calculations and math functions.
Components
React components compute visual states from props correctly.
Hooks
Data manipulation pure logic before the UI renders.
Running Unit Tests
Terminal
pnpm test # Run all tests
pnpm test:ui # Interactive Vitest dashboard