Skip to content

test setup

Scaffold a test harness: Vitest config, a sample test, and vscode/RPC mock helpers.

Terminal window
vsceasy test setup

Flags

FlagTypeNotes
--forcebooleanOverwrite existing test files.

What it generates

  • A Vitest config.
  • A sample test under src/__tests__/.
  • Mock helpers for the vscode API and the RPC bridge, so you can unit-test panel handlers and services without a running extension host.
Terminal window
bun run test # vitest run
bun run test:watch # vitest