export const addTests = {
    name: "add-tests",
    description: "Add production test coverage — API routes, data layer, critical UI components, utilities",
    content: `Add test coverage using the testing framework in package.json (vitest, jest, or playwright). If none exists, install vitest and @testing-library/react.

Priority order:

1. API Routes / Server Actions (highest value)
   - Happy path: valid input -> correct response
   - Auth failure: no session -> 401
   - Validation failure: bad input -> 400
   - Database error: mock Supabase failure -> 500 with safe error

2. Data Access Layer (lib/db/ functions)
   - Correct data shape on success
   - Handles and wraps database errors

3. Critical UI Components
   - Forms: validation, submission, error display
   - Data display: loading, error, empty states render
   - Auth-gated views: redirect when unauthenticated

4. Utility Functions
   - Normal inputs, edge cases (null, undefined, empty, boundaries)

Standards: [filename].test.ts, clear descriptions, mock external deps, no snapshot tests.
After: run test suite, confirm passes, git commit "test: add production test coverage".`
};
//# sourceMappingURL=add-tests.js.map