()
| 56 | * @returns The mock instance. |
| 57 | */ |
| 58 | export 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. |
no outgoing calls
no test coverage detected