MCPcopy
hub / github.com/vitest-dev/vitest / watch

Function watch

packages/vitest/src/node/cli/cac.ts:269–272  ·  view source on GitHub ↗
(cliFilters: string[], options: CliOptions)

Source from the content-addressed store, hash-verified

267}
268
269async function watch(cliFilters: string[], options: CliOptions): Promise<void> {
270 options.watch = true
271 await start('test', cliFilters, options)
272}
273
274async function run(cliFilters: string[], options: CliOptions): Promise<void> {
275 // "vitest run --watch" should still be watch mode

Callers 4

useCodeMirrorFunction · 0.85
navigation.tsFile · 0.85
index.tsFile · 0.85
useSearchFunction · 0.85

Calls 1

startFunction · 0.70

Tested by

no test coverage detected