Skip to content

Commit 1fc6d52

Browse files
committed
add streamable-http mock in same fashion as sse - which does not seem to currently be actually leveraged
1 parent adcd21b commit 1fc6d52

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class StreamableHTTPClientTransport {
2+
constructor(url, options = {}) {
3+
this.url = url
4+
this.options = options
5+
this.onerror = null
6+
this.onclose = null
7+
this.connect = jest.fn().mockResolvedValue()
8+
this.close = jest.fn().mockResolvedValue()
9+
this.start = jest.fn().mockResolvedValue()
10+
}
11+
}
12+
13+
module.exports = {
14+
StreamableHTTPClientTransport,
15+
}

0 commit comments

Comments
 (0)