7d0cbaad96
Add tests for all major API endpoints: - /api/prompts (GET, POST) - /api/prompts/[id] (GET, PATCH, DELETE) - /api/prompts/[id]/vote (POST, DELETE) - /api/prompts/[id]/comments (GET, POST) - /api/prompts/search (GET) - /api/collection (GET, POST, DELETE) - /api/user/profile (GET, PATCH) - /api/leaderboard (GET) - /api/reports (POST) Tests cover authentication, authorization, validation, error handling, and business logic for each endpoint.