Runs and debugs a single JavaScript or TypeScript test from VS Code, for Jest, Vitest, Playwright and more
open sourceMITfree
A VS Code extension (listed in the marketplaces as Jest / Vitest Runner) that adds Run and Debug actions above each describe, it and test, so one test, a block, a file or a folder runs through the project's own test CLI in the terminal or the debugger. It detects whether a file belongs to Jest, Vitest, Playwright, Rstest, Bun, Deno or Node.js's test runner from their config files, with no setup. It adds watch mode, snapshot updates, re-running the last test, inline coverage with a coverage view, and VS Code's Test Explorer when turned on. MIT licensed.
Problems it solves
- run just one Jest or Vitest test from VS Code without typing the command
- debug a single failing JavaScript test with breakpoints in my editor
- see test coverage inline while I write TypeScript tests
Features
- Run and Debug actions above every test
- runs one test, block, file or folder with the project's own CLI
- detects Jest, Vitest, Playwright, Rstest, Bun, Deno and Node.js tests
- watch mode and snapshot updates
- inline coverage and a coverage view
- optional Test Explorer tree
Alternatives
The same job
These do what Jest Runner does.
- Test Runner for Java Run and debug JUnit and TestNG tests in VS Code