Vitest
Quick start
Section titled “Quick start”tinkerise add testingWhat it detects
Section titled “What it detects”The testing module checks for existing test setup by looking for:
- Vitest config files:
vitest.config.ts/js/mts/mjs - Jest config files:
jest.config.js/ts/mjs/cjs - Installed
vitestorjestdependencies
If any of these exist, the module is treated as already installed.
What it installs
Section titled “What it installs”testing always standardizes on Vitest and performs all of the following:
- Installs
vitestas a dev dependency - Creates
vitest.config.ts - Adds package scripts:
test:vitesttest:run:vitest run
- Creates starter files:
tests/sum.tstests/sum.test.ts
File and config changes
Section titled “File and config changes”vitest.config.tsincludestest.includeandtest.excludedefaultspackage.jsongets/updatestestandtest:runscriptstests/gets a working function and test sobun run testworks immediately
Conflict handling
Section titled “Conflict handling”If vitest.config.*, jest.config.*, or test tooling already exists, detection reports the enhancement as installed. For file-write conflicts in interactive runs, tinkerise shows a diff and allows replace/skip decisions.