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

Function startVitest

test/cli/test/watch/workspaces.test.ts:29–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27`
28
29async function startVitest() {
30 const { vitest } = await runVitestCli(
31 { nodeOptions: { cwd: root, env: { TEST_WATCH: 'true', NO_COLOR: 'true' } } },
32 '--root',
33 root,
34 '--config',
35 config,
36 '--watch',
37 '--no-coverage',
38 )
39 vitest.resetOutput()
40 return vitest
41}
42
43afterEach(() => {
44 cleanups.splice(0).forEach(cleanup => cleanup())

Callers 1

workspaces.test.tsFile · 0.70

Calls 2

resetOutputMethod · 0.80
runVitestCliFunction · 0.50

Tested by

no test coverage detected