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

Method getTestModules

packages/vitest/src/node/state.ts:125–127  ·  view source on GitHub ↗
(keys?: string[])

Source from the content-addressed store, hash-verified

123 }
124
125 getTestModules(keys?: string[]): TestModule[] {
126 return this.getFiles(keys).map(file => this.getReportedEntity(file) as TestModule)
127 }
128
129 getFilepaths(): string[] {
130 return Array.from(this.filesMap.keys())

Callers 15

mergeReportsMethod · 0.80
runFilesMethod · 0.80
collectTestsMethod · 0.80
onWatcherRerunFunction · 0.80
reportImportDurationsFunction · 0.80
runner.test.tsFile · 0.80
cli.test.jsFile · 0.80
resultsFunction · 0.80
errorTreeFunction · 0.80
testTreeFunction · 0.80
buildTreeFunction · 0.80

Calls 2

getFilesMethod · 0.95
getReportedEntityMethod · 0.95

Tested by

no test coverage detected