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

Method extend

packages/runner/src/fixture.ts:63–68  ·  view source on GitHub ↗
(runner: VitestRunner, userFixtures: UserFixtures)

Source from the content-addressed store, hash-verified

61 }
62
63 extend(runner: VitestRunner, userFixtures: UserFixtures): TestFixtures {
64 const { suite } = getCurrentSuite()
65 const isTopLevel = !suite || suite.file === suite
66 const registrations = this.parseUserFixtures(runner, userFixtures, isTopLevel)
67 return new TestFixtures(registrations)
68 }
69
70 get(suite: Suite): FixtureRegistrations {
71 let currentSuite: Suite | undefined = suite

Callers

nothing calls this directly

Calls 2

parseUserFixturesMethod · 0.95
getCurrentSuiteFunction · 0.90

Tested by

no test coverage detected