Step-by-step installation and configuration post, really easy to follow and strict to the point. Recommended read thecomments section which helps the post be up-to-date.
Vitest's official documentation. This link is specially useful because shows test configuration options.