MCPcopy Create free account
hub / github.com/angular/angular / installWebMcpMock

Function installWebMcpMock

packages/private/testing/src/webmcp_mock.ts:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 * @returns The mock instance.
57 */
58export function installWebMcpMock(): ModelContextMock {
59 const mock = new ModelContextMock();
60 Object.defineProperty(document, 'modelContext', {value: mock, configurable: true});
61
62 return mock;
63}
64
65/**
66 * Uninstalls the current WebMCP mock from the document.

Callers 3

webmcp.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected