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

Function extend

packages/browser/src/client/tester/context.ts:428–433  ·  packages/browser/src/client/tester/context.ts::extend
(methods)

Source from the content-addressed store, hash-verified

426 throw new Error(`Method class="st">"frameLocator" is not supported by the class="st">"${provider}" provider.`)
427 },
428 extend(methods) {
429 for (const key in methods) {
430 (page as any)[key] = (methods as any)[key].bind(page)
431 }
432 return page
433 },
434}
435
436function convertToLocator(element: Element | Locator): Locator {

Callers

nothing calls this directly

Calls 3

bindMethod · 0.80
addMethod · 0.45
locatorMethod · 0.45

Tested by

no test coverage detected