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

Function triggerCommand

packages/browser/src/client/tester/locators/index.ts:364–377  ·  view source on GitHub ↗
(command: string, ...args: any[])

Source from the content-addressed store, hash-verified

362 }
363
364 protected triggerCommand<T>(command: string, ...args: any[]): Promise<T> {
365 if (this._errorSource) {
366 return triggerCommandWithTrace<T>({
367 name: command,
368 arguments: args,
369 errorSource: this._errorSource,
370 })
371 }
372 return ensureAwaited(error => triggerCommandWithTrace<T>({
373 name: command,
374 arguments: args,
375 errorSource: error,
376 }))
377 }
378}
379
380export function triggerCommandWithTrace<T>(

Callers

nothing calls this directly

Calls 2

ensureAwaitedFunction · 0.90
triggerCommandWithTraceFunction · 0.85

Tested by

no test coverage detected