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

Function vitest

test/cli/test/vcs-provider.test.ts:141–145  ·  view source on GitHub ↗
(config: Parameters<typeof createVitest>[1])

Source from the content-addressed store, hash-verified

139}
140
141async function vitest(config: Parameters<typeof createVitest>[1]) {
142 const v = await createVitest('test', { ...config, watch: false, config: false }, {})
143 onTestFinished(() => v.close())
144 return v
145}
146
147test('vcsProvider defaults to GitVCSProvider when not specified', async () => {
148 const v = await vitest({})

Callers 1

Calls 2

createVitestFunction · 0.90
closeMethod · 0.45

Tested by

no test coverage detected