vitest
Installation
SKILL.md
Quick Start
Typical setup: Vitest v4 with jsdom environment; globals enabled (describe, test, expect, vi); path aliases configured per project. In a workspace monorepo, read references/monorepo-testing.md for shared-vs-app test strategies, path aliases, and organization.
Running Tests
# Run all unit tests
nlx vitest run
# Run tests matching pattern
nlx vitest run tokens
# Run specific test file
nlx vitest run src/utils/format.test.ts
# Run tests with matching name
nlx vitest run -t "adds token"