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

Method get

packages/runner/src/fixture.ts:70–84  ·  view source on GitHub ↗
(suite: Suite)

Source from the content-addressed store, hash-verified

68 }
69
70 get(suite: Suite): FixtureRegistrations {
71 let currentSuite: Suite | undefined = suite
72 while (currentSuite) {
73 const overrides = this._overrides.get(currentSuite)
74 // return the closest override
75 if (overrides) {
76 return overrides
77 }
78 if (currentSuite === currentSuite.file) {
79 break
80 }
81 currentSuite = currentSuite.suite || currentSuite.file
82 }
83 return this._registrations
84 }
85
86 override(runner: VitestRunner, userFixtures: UserFixtures): void {
87 const { suite: currentSuite, file } = getCurrentSuite()

Callers 15

overrideMethod · 0.95
getFnFunction · 0.45
getTestFixturesFunction · 0.45
getHooksFunction · 0.45
abortContextSignalFunction · 0.45
createTestContextFunction · 0.45
getFileContextMethod · 0.45
getWorkerContextMethod · 0.45
parseUserFixturesMethod · 0.45
callFixtureCleanupFunction · 0.45
getFixtureCleanupCountFunction · 0.45
callFixtureCleanupFromFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected