@davstack/vitest-server
v1.6.1
Published
Warm vitest daemon for fast TDD reruns. Keeps a long-lived vitest runtime hot so per-file reruns drop from ~50s cold to ~3-15s.
Downloads
2,315
Readme
@davstack/vitest-server
Long-lived Vitest daemon. Story/unit reruns drop from ~50s cold to ~3-15s warm.
Why
- Warm-boot speed. Vite optimize + playwright launch + storybook preset only happen once; per-file reruns reuse the hot pool.
- Agent-optimized CLI. Structured JSON + exit codes; fast loops, lean on tokens.
Install & setup (1 min)
Recommended: scaffold with davstack init
pnpx @davstack/init(cd to your project repo first - vitest-server is scoped to codebase)
(more info: setup.md)
Usage Example
- Start server
davstack start(more info: davstack tui)
- Rerun a file against the warm daemon
vitest-server run src/feat/chart-views/LineChart/LineChartView.stories.tsxResult:
{"ok":false, "durationMs":3120, "file":"…/LineChartView.stories.tsx", "errors":[...]}Exit 0 on pass / 1 on fail.
(more info: usage.md)
Docs
- docs/setup.md — config file, runtime matrix,
primeFilesemantics - docs/usage.md — CLI verbs, HTTP API, agent TDD loop
- docs/troubleshooting.md —
(0 test), version mismatch, Bun-on-Windows
