vitest
Vitest suites: test lint rules and coverage floors before every push. It requires javascript. The Tests and coverage guide explains the setup.
Checks
Section titled “Checks”| Check | Stage | Level | What it does |
|---|---|---|---|
vitest/coverage |
push |
recommended |
Runs the test suite with coverage, and fails when lines, branches, functions, or statements fall under their floors. |
Settings
Section titled “Settings”| Setting | What it sets |
|---|---|
coverage.lines |
The minimum percentage of source lines covered by tests. |
coverage.branches |
The minimum percentage of source branches covered by tests. |
coverage.functions |
The minimum percentage of source functions covered by tests. |
coverage.statements |
The minimum percentage of source statements covered by tests. |
Selected when
Section titled “Selected when”gspot selects it in a scope with dependencies vitest.
Rules for coding agents
Section titled “Rules for coding agents”| Rule file | Installed when |
|---|---|
.gspot/configurations/testing/vitest/rules/VITEST.md |
Always |
Tools and versions
Section titled “Tools and versions”| Tool | Version |
|---|---|
| vitest | Any |
| @vitest/eslint-plugin | 1.3.4 |
| @vitest/coverage-v8 | Any |