Agent Promptฟรี
Vitest test generator — from a function
Feed a function, get a focused Vitest suite: happy path, boundaries, and the error cases that actually matter.
ของ lazyyy เอง · อัปเดต 9 ส.ค. 2569
ส่วนประกอบ
Vitest test generator
Write a Vitest suite for this function. Cover:
- the happy path
- boundary values (0, empty, max, negative where relevant)
- each error/throw branch
Use describe/it, arrange-act-assert, and real assertions (no snapshot dumps).
Name tests by behavior, not by method name.