@@ -24,7 +24,7 @@ describe("SSEClientTransport", () => {
2424 // Send SSE headers
2525 res . writeHead ( 200 , {
2626 "Content-Type" : "text/event-stream" ,
27- "Cache-Control" : "no-cache" ,
27+ "Cache-Control" : "no-cache, no-transform " ,
2828 Connection : "keep-alive" ,
2929 } ) ;
3030
@@ -56,6 +56,8 @@ describe("SSEClientTransport", () => {
5656 baseUrl = new URL ( `http://127.0.0.1:${ addr . port } ` ) ;
5757 done ( ) ;
5858 } ) ;
59+
60+ jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } ) ;
5961 } ) ;
6062
6163 afterEach ( async ( ) => {
@@ -183,7 +185,7 @@ describe("SSEClientTransport", () => {
183185 if ( req . method === "GET" ) {
184186 res . writeHead ( 200 , {
185187 "Content-Type" : "text/event-stream" ,
186- "Cache-Control" : "no-cache" ,
188+ "Cache-Control" : "no-cache, no-transform " ,
187189 Connection : "keep-alive" ,
188190 } ) ;
189191 res . write ( "event: endpoint\n" ) ;
@@ -397,7 +399,7 @@ describe("SSEClientTransport", () => {
397399
398400 res . writeHead ( 200 , {
399401 "Content-Type" : "text/event-stream" ,
400- "Cache-Control" : "no-cache" ,
402+ "Cache-Control" : "no-cache, no-transform " ,
401403 Connection : "keep-alive" ,
402404 } ) ;
403405 res . write ( "event: endpoint\n" ) ;
@@ -524,7 +526,7 @@ describe("SSEClientTransport", () => {
524526 if ( auth === "Bearer new-token" ) {
525527 res . writeHead ( 200 , {
526528 "Content-Type" : "text/event-stream" ,
527- "Cache-Control" : "no-cache" ,
529+ "Cache-Control" : "no-cache, no-transform " ,
528530 Connection : "keep-alive" ,
529531 } ) ;
530532 res . write ( "event: endpoint\n" ) ;
@@ -610,7 +612,7 @@ describe("SSEClientTransport", () => {
610612
611613 res . writeHead ( 200 , {
612614 "Content-Type" : "text/event-stream" ,
613- "Cache-Control" : "no-cache" ,
615+ "Cache-Control" : "no-cache, no-transform " ,
614616 Connection : "keep-alive" ,
615617 } ) ;
616618 res . write ( "event: endpoint\n" ) ;
0 commit comments