( key: T, )
| 6 | * This usually returns a value provided by `globalSetup` or an external library. |
| 7 | */ |
| 8 | export function inject<T extends keyof ProvidedContext & string>( |
| 9 | key: T, |
| 10 | ): ProvidedContext[T] { |
| 11 | const workerState = getWorkerState() |
| 12 | return workerState.providedContext[key] as ProvidedContext[T] |
| 13 | } |
no test coverage detected