vitest

scriptableproductivity
$ npm i -g vitest
Summary

Testing, watch mode, and js unit tests from the terminal.

  • vitest fits git & github well, especially for testing, watch mode, and js unit tests from the terminal.
  • 34,567,927 npm weekly downloads.
  • Easy to automate.
  • Good fit for coding-agent workflows and repeatable scripts.
  • Output is mostly text-first, so verify results before scripting around it.
github-vitest-SKILL.md

Vitest guide

Testing, watch mode, and js unit tests from the terminal. Built by Vitest.

Open CLI packages the install path, verify step, and safe-start workflow so this tool can move from “interesting CLI” to something you can actually use. It also integrates with skills.sh so each CLI comes with the right companion skills, not just a binary and a docs link.

When to apply

  • testing, watch mode, and js unit tests from the terminal.
  • You need productivity workflows in both local dev and CI.
  • You need testing.
  • You need watch mode.
  • You need js unit tests.

Quick reference

Installnpm i -g vitest
Verifyvitest --version
First real commandvitest run

Open CLI × skills.sh

Open CLI integrates vitest with the right skills.sh companions so you get the tool and the workflow together.

Vitest

Verified pairing

Open CLI integrates vitest with this skills.sh skill because it is the clearest fit for how vitest is usually used. Testing guidance for Vitest-powered JavaScript projects.

View on skills.sh
$ npx skills add https://github.com/antfu/skills --skill vitest
Starter prompt

Use vitest together with the Vitest skills.sh skill. Start with safe inspection commands, summarize what you find, and ask before any step with side effects.

Also useful from skills.sh

Why this tool

  • vitest fits git & github well, especially for testing, watch mode, and js unit tests from the terminal.
  • 34,567,927 npm weekly downloads.
  • Easy to automate.

Watch-outs

  • Output is mostly plain text.

Example workflow

1. vitest run

Safe start

Step 1

Install vitest.

Step 2

Run `vitest --version` first.

Step 3

Start with `vitest run`.

Step 4

Install the CLI and make sure it is on your PATH.

Alternatives worth considering