Discover the most effective Jest Compatible prompts. High-quality templates curated by experts to help you get professional AI results.
Write effective unit tests with Vitest. Practices: 1. describe/it blocks for test organization. 2. expect assertions with matchers. 3. Mock functions with vi.fn() and vi.spyOn(). 4. Component testing with @testing-library/react. 5. Coverage reporting with c8. 6. Snapshot testing for UI components. 7...