File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ const assert = require("chai").assert;
14
14
const path = require ( "node:path" ) ;
15
15
const { Client } = require ( "@modelcontextprotocol/sdk/client/index.js" ) ;
16
16
const { InMemoryTransport } = require ( "@modelcontextprotocol/sdk/inMemory.js" ) ;
17
+ const sinon = require ( "sinon" ) ;
17
18
18
19
//-----------------------------------------------------------------------------
19
20
// Helpers
@@ -55,6 +56,16 @@ describe("MCP Server", () => {
55
56
// Note: must connect server first or else client hangs
56
57
await mcpServer . connect ( serverTransport ) ;
57
58
await client . connect ( clientTransport ) ;
59
+
60
+ sinon
61
+ . stub ( process , "emitWarning" )
62
+ . callThrough ( )
63
+ . withArgs ( sinon . match . any , "ESLintIgnoreWarning" )
64
+ . returns ( ) ;
65
+ } ) ;
66
+
67
+ afterEach ( ( ) => {
68
+ sinon . restore ( ) ;
58
69
} ) ;
59
70
60
71
describe ( "Tools" , ( ) => {
You can’t perform that action at this time.
0 commit comments