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

Method initializeGlobalSetup

packages/vitest/src/node/core.ts:1185–1194  ·  view source on GitHub ↗
(paths: TestSpecification[])

Source from the content-addressed store, hash-verified

1183 }
1184
1185 private async initializeGlobalSetup(paths: TestSpecification[]): Promise<void> {
1186 const projects = new Set(paths.map(spec => spec.project))
1187 const coreProject = this.getRootProject()
1188 if (!projects.has(coreProject)) {
1189 projects.add(coreProject)
1190 }
1191 for (const project of projects) {
1192 await project._initializeGlobalSetup()
1193 }
1194 }
1195
1196 /** @internal */
1197 async rerunFiles(files: string[] = this.state.getFilepaths(), trigger?: string, allTestsRun = true, resetTestNamePattern = false): Promise<TestRunResult> {

Callers 2

runFilesMethod · 0.95
collectTestsMethod · 0.95

Calls 4

getRootProjectMethod · 0.95
hasMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected