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

Function unregisterMock

packages/browser/src/node/rpc.ts:405–410  ·  view source on GitHub ↗
(sessionId, id)

Source from the content-addressed store, hash-verified

403 return mocker.clear(sessionId)
404 },
405 unregisterMock(sessionId, id) {
406 if (!mocker) {
407 return defaultMockerRegistry.delete(id)
408 }
409 return mocker.delete(sessionId, id)
410 },
411
412 // CDP
413 async sendCdpEvent(sessionId: string, event: string, payload?: Record<string, unknown>) {

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.45

Tested by

no test coverage detected