--- applyTo: "**/*.test.ts,**/*.test.tsx" --- # Tests - Use Vitest with `describe` and `test`. Do not use `it`. - Build test data with the factories in `test/factories.ts` instead of inline objects. - Tests that touch the database run against the Compose Postgres and clean up their own rows. - Assert on what a user or caller sees, such as returned values and rendered text. - Do not mock modules from this repository. Mock only network calls to other services.