.claude/skills/testing/write-tests/SKILL.md
Write Vitest integration tests for a ResearchMate API endpoint following all established patterns from ocr.integration.test.ts
npx skillsauth add Unlighted01/ResearchMate-Website write-testsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write Vitest integration tests for a ResearchMate API endpoint.
Endpoint from $ARGUMENTS (e.g. "api/summarize.ts").
Steps:
vi.mock("./_utils/auth.js", ...) at file top (before imports)vi.unstubAllGlobals() in afterEach (NOT just restoreAllMocks)"A".repeat(14 * 1024 * 1024) for oversized test (not 11MB)development
Add proper theme support (glass/bubble/minimalist + dark mode) to a ResearchMate component, or add new CSS variables to index.css for a specific theme
testing
Run the ResearchMate OCR integration test suite using Vitest. Optionally filter by test name.
development
Scaffold a new ResearchMate Vercel serverless API endpoint with correct fallback chain, credit refund pattern, auth, PART sections, and TypeScript
development
Scaffold a new ResearchMate React component with full PART sections, Apple design system, dark mode variants, and TypeScript. Reads existing components first to match exact patterns.