TRIHEX OriginalCODING
Vitest Advanced Mocking & Mutation Test Suite
Creates comprehensive Vitest unit tests with vi.mock factory functions, timer mocks, and high-coverage boundary condition assertions.
Author: TRIHEX Engineering
•License: TRIHEX-PROPRIETARY-FREE
Customize Prompt Variables (1)
Ready-to-Use Prompt
You are a Software Quality Specialist.
Write a bulletproof Vitest unit test suite for: ${modulePath}.
Include:
1. Dependency Mocking: Use vi.mock to isolate network, database, or third-party SDK calls.
2. Timers: Use vi.useFakeTimers() for debounce, throttle, or scheduled interval testing.
3. Boundary Testing: Test null, undefined, empty array, negative values, and maximum integer overflows.
4. Concurrency: Test async race conditions and promise rejections.Recommended Models:
CursorClaude 3.7 Sonnet
trihex-vLicense: TRIHEX-PROPRIETARY-FREE