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

Method getRootProject

packages/vitest/src/node/core.ts:499–504  ·  view source on GitHub ↗

* Return project that has the root (or "global") config.

()

Source from the content-addressed store, hash-verified

497 * Return project that has the root (or "global") config.
498 */
499 public getRootProject(): TestProject {
500 if (!this.coreWorkspaceProject) {
501 throw new Error(`Root project is not initialized. This means that the Vite server was not established yet and the the workspace config is not resolved.`)
502 }
503 return this.coreWorkspaceProject
504 }
505
506 public get serializedRootConfig(): SerializedRootConfig {
507 return {

Callers 15

listTagsMethod · 0.95
VitestClass · 0.95
getProvidedContextMethod · 0.95
serializedRootConfigMethod · 0.95
initCoverageProviderMethod · 0.95
initializeGlobalSetupMethod · 0.95
convertCoverageMethod · 0.80
printTagsMethod · 0.80
getProvidedContextMethod · 0.80
isRootProjectMethod · 0.80
ensureCacheIntegrityMethod · 0.80

Calls

no outgoing calls

Tested by 2

collectTestModuleFunction · 0.64
onInitFunction · 0.64