API Testing with Vitest
Writes and executes comprehensive API tests for Hono-based backend services using the Vitest framework.
This skill streamlines the testing process for backend developers working with Hono and Vitest, particularly within monorepo environments. It provides standardized patterns for validating RESTful endpoints, testing complex middleware logic like authentication and error handling, and performing full integration tests with real databases. The skill also includes advanced capabilities for mocking external dependencies such as Redis, fetch calls, and third-party data APIs, ensuring robust coverage for both simple routes and complex background workflows.
主な機能
01QStash and background workflow validation logic
02Integration testing setups with automated database management
03Advanced mocking strategies for Redis and external fetch calls
04Hono-optimized route and middleware testing patterns
05V8 coverage reporting and Vitest configuration management
0612 GitHub stars
ユースケース
01Validating request payload schemas and error response formats
02Ensuring data integrity during complex car data update workflows
03Verifying API endpoint security through auth middleware testing