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

Function registerCalls

packages/spy/src/index.ts:577–580  ·  view source on GitHub ↗
(args: unknown[], state: MockContext, prototypeState?: MockContext)

Source from the content-addressed store, hash-verified

575}
576
577function registerCalls(args: unknown[], state: MockContext, prototypeState?: MockContext) {
578 state.calls.push(args)
579 prototypeState?.calls.push(args)
580}
581
582function registerInvocationOrder(order: number, state: MockContext, prototypeState?: MockContext) {
583 state.invocationCallOrder.push(order)

Callers 1

createMockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected