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

Method bind

packages/vitest/src/utils/traces.ts:280–287  ·  view source on GitHub ↗

* @internal

(context: Context)

Source from the content-addressed store, hash-verified

278 * @internal
279 */
280 bind(context: Context) {
281 if (!this.#otel) {
282 return
283 }
284 const original = (this.$ as any).__original ?? this.$
285 this.$ = this.#otel.context.bind(context, original)
286 ;(this.$ as any).__original = original
287 }
288
289 /**
290 * @internal

Callers 15

catchWindowErrorsFunction · 0.80
extendFunction · 0.80
tester-utils.tsFile · 0.80
tester.tsFile · 0.80
configureServerFunction · 0.80
generateContextFileFunction · 0.80
collect.tsFile · 0.80
run.tsFile · 0.80
throttleFunction · 0.80
startTestsFunction · 0.80
context.tsFile · 0.80
createFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected