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

Function collectTests

test/cli/test/static-collect.test.ts:1687–1689  ·  view source on GitHub ↗
(code: string, options?: CliOptions & { fnFn?: boolean })

Source from the content-addressed store, hash-verified

1685}
1686
1687async function collectTests(code: string, options?: CliOptions & { fnFn?: boolean }) {
1688 return testTree(await collectTestModule(code, options), {}, options?.fnFn)
1689}
1690
1691function testTree(module: TestModule | TestSuite, tree: any = {}, fnFn?: boolean) {
1692 for (const item of module.children) {

Callers 1

Calls 2

collectTestModuleFunction · 0.85
testTreeFunction · 0.70

Tested by

no test coverage detected