MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / assertErrorResponse

Function assertErrorResponse

test/shared/protocol.test.ts:127–129  ·  view source on GitHub ↗
(o: ResponseMessage<Result>)

Source from the content-addressed store, hash-verified

125}
126
127function assertErrorResponse(o: ResponseMessage<Result>): asserts o is ErrorMessage {
128 expect(o.type).toBe('error');
129}
130
131function assertQueuedNotification(o?: QueuedMessage): asserts o is QueuedNotification {
132 expect(o).toBeDefined();

Callers 1

protocol.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…