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

Method getFileContexts

packages/runner/src/fixture.ts:49–51  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

47 }
48
49 static getFileContexts(file: File): Record<string, any>[] {
50 return TestFixtures._definitions.map(f => f.getFileContext(file))
51 }
52
53 static isFixtureOptions(obj: unknown): boolean {
54 return isObject(obj) && Object.keys(obj as any).some(key => TestFixtures._fixtureOptionKeys.includes(key))

Callers 1

runSuiteFunction · 0.80

Calls 1

getFileContextMethod · 0.80

Tested by

no test coverage detected