write-tests

Generate Vitest integration tests for ResearchMate API endpoints.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/Unlighted01/ResearchMate-Website --skill write-tests-unlighted01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-tests
Source: https://github.com/Unlighted01/ResearchMate-Website/tree/main/.claude/skills/testing/write-tests
Command: npx skills add https://github.com/Unlighted01/ResearchMate-Website --skill write-tests-unlighted01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically generate Vitest integration tests for ResearchMate API endpoints to ensure consistent coverage, faster iteration, and reduced manual test boilerplate.

Core Features & Use Cases

  • Pattern-driven test generation: Reproduces test structures and conventions from ocr.integration.test.ts to maintain a cohesive testing approach across endpoints.
  • End-to-end coverage: Validates HTTP statuses, request validation, error paths, and provider fallback scenarios.
  • Standardized output: Produces a complete api/$name.integration.test.ts and a concise summary table of generated cases.

Quick Start

Generate a complete integration test file for the given endpoint path and place it under api/.

Frequently Asked Questions about write-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Vitest integration tests for API endpoints?

You can generate Vitest integration tests for API endpoints by applying established testing patterns that validate HTTP statuses, request validation, error paths, and provider fallback behavior. This produces a complete integration test file with a summary table of generated cases.

What is integration testing for API endpoint validation and error handling?

Integration testing for API endpoint validation checks happy-path responses and error handling by exercising HTTP statuses and provider fallback scenarios. It ensures correct behavior and stability across endpoint files using standardized mocking conventions.

Can I use Vitest to test provider fallback behavior in JavaScript APIs?

Yes, you can use Vitest to test provider fallback behavior in JavaScript APIs by applying integration testing patterns that cover validation, error paths, and fallback scenarios. This ensures endpoint stability and consistent coverage across the repository.

What's the best way to automate test boilerplate for ResearchMate API endpoints?

The best way to automate test boilerplate is pattern-driven test generation that reproduces structures from existing integration tests. This maintains a cohesive testing approach and outputs standardized files covering validation, error handling, and provider fallback.

Does automated Vitest test generation handle mocking conventions and oversize handling?

Automated Vitest test generation adheres to required mocking and oversize handling conventions by reproducing established test structures. It ensures generated integration tests follow repository-wide standards for validation and error path coverage.