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

Function createRoot

test/cli/test/vcs-provider.test.ts:135–139  ·  view source on GitHub ↗
(structure: Record<string, string>)

Source from the content-addressed store, hash-verified

133})
134
135function createRoot(structure: Record<string, string>) {
136 const root = resolve(process.cwd(), `vitest-test-${crypto.randomUUID()}`)
137 useFS(root, structure)
138 return root
139}
140
141async function vitest(config: Parameters<typeof createVitest>[1]) {
142 const v = await createVitest('test', { ...config, watch: false, config: false }, {})

Callers 1

Calls 2

useFSFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected