pmcp

vitest

Use Vitest ^5.0.0 standalone assertions and mock functions correctly, while avoiding APIs that require the Vitest runner and accounting for v5 migration changes.

A skill is written against one major of its package, because a major is where the shape changes. Pick the line that matches your lockfile.

LineForVerified
5.x vitest@5.0.0 2026-09-07, 5 examples