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

Method injectValue

packages/vitest/src/runtime/runners/test.ts:136–140  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

134 }
135
136 injectValue(key: string): any {
137 // inject has a very limiting type controlled by ProvidedContext
138 // some tests override it which causes the build to fail
139 return (inject as any)(key)
140 }
141
142 async onBeforeRunTask(test: Task): Promise<void> {
143 if (this.cancelRun) {

Callers 1

parseUserFixturesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected