--- title: Add Meaningful Tests description: Add or improve tests for existing or changed behavior --- # Add Meaningful Tests 1. Run Graphify query first to map impacted implementation and test files. 2. Inspect nearby tests to identify test runner, factories, fixtures, mocks, and naming conventions. 3. Identify externally visible behavior to test. 4. Cover happy path, edge cases, invalid input, error handling, and authorization/permissions where relevant. 5. Prefer precise assertions over broad snapshots. 6. Avoid testing private implementation details. 7. Run targeted tests, then `npm run lint` and `npm run build` as applicable. 8. Summarize coverage added and remaining gaps.