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

Method getFileContext

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

Source from the content-addressed store, hash-verified

102 }
103
104 getFileContext(file: File): Record<string, any> {
105 if (!this._suiteContexts.has(file)) {
106 this._suiteContexts.set(file, Object.create(null))
107 }
108 return this._suiteContexts.get(file)!
109 }
110
111 getWorkerContext(): Record<string, any> {
112 if (!this._suiteContexts.has(TestFixtures._workerContextSuite)) {

Callers 3

withSuiteFixturesFunction · 0.80
getFileContextsMethod · 0.80
resolveScopeFixtureValueFunction · 0.80

Calls 4

createMethod · 0.80
hasMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected