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

Method isRootProject

packages/vitest/src/node/project.ts:228–230  ·  view source on GitHub ↗

* Check if this is the root project. The root project is the one that has the root config.

()

Source from the content-addressed store, hash-verified

226 * Check if this is the root project. The root project is the one that has the root config.
227 */
228 public isRootProject(): boolean {
229 return this.vitest.getRootProject() === this
230 }
231
232 /** @internal */
233 async _initializeGlobalSetup() {

Callers 3

getProvidedContextMethod · 0.95
printNoTestFoundMethod · 0.80
printBrowserBannerMethod · 0.80

Calls 1

getRootProjectMethod · 0.80

Tested by

no test coverage detected