Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Test Convention
Use Vitest for unit and component tests. Cypress remains the end-to-end test runner.
- Place tests next to the code they cover as
*.test.tsor*.test.tsx. - Import Vitest APIs explicitly:
import { describe, expect, test, vi } from 'vitest';. - Use
test, notit. - React component tests should import from
@/test/render. - Prefer accessible Testing Library queries such as
getByRole,getByLabelText, andgetByText. - Use
getByTestIdonly when there is no useful accessible query. The test id attribute isdata-test. - Keep test doubles in the test file unless they are shared framework concerns, such as Next navigation.