Skip to content

vitest

Vitest suites: test lint rules and coverage floors before every push. It requires javascript. The Tests and coverage guide explains the setup.

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.
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.

gspot selects it in a scope with dependencies vitest.

Rule file Installed when
.gspot/configurations/testing/vitest/rules/VITEST.md Always
Tool Version
vitest Any
@vitest/eslint-plugin 1.3.4
@vitest/coverage-v8 Any