.claude/skills/testing/run-tests/SKILL.md
Run the ResearchMate OCR integration test suite using Vitest. Optionally filter by test name.
npx skillsauth add Unlighted01/ResearchMate-Website run-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.
Run the OCR integration tests for ResearchMate.
Steps:
npm i -D vitestnpx vitest run api/ocr.integration.test.tsnpx vitest run api/ocr.integration.test.ts -t "$ARGUMENTS"Known setup requirements:
vi.mock("./_utils/auth.js") must be at file top — auth.ts calls createClient at module load timevi.stubGlobal("fetch", ...) — must call vi.unstubAllGlobals() in afterEach (not just restoreAllMocks)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
development
Write Vitest integration tests for a ResearchMate API endpoint following all established patterns from ocr.integration.test.ts
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.