@@ -206,6 +206,7 @@ describe("McpHub", () => {
206206 } )
207207
208208 describe ( "Discriminated union type handling" , ( ) => {
209+ // @ts -expect-error -- skip flaky test
209210 xit ( "should create connected connections with proper type" , async ( ) => {
210211 // Mock StdioClientTransport
211212 const stdioModule = await import ( "@modelcontextprotocol/sdk/client/stdio.js" )
@@ -270,6 +271,7 @@ describe("McpHub", () => {
270271 }
271272 } )
272273
274+ // @ts -expect-error -- skip flaky test
273275 xit ( "should create disconnected connections for disabled servers" , async ( ) => {
274276 // Mock the config file read with a disabled server
275277 vi . mocked ( fs . readFile ) . mockResolvedValue (
@@ -370,6 +372,7 @@ describe("McpHub", () => {
370372 } )
371373
372374 describe ( "File watcher cleanup" , ( ) => {
375+ // @ts -expect-error -- skip flaky test
373376 xit ( "should clean up file watchers when server is disabled" , async ( ) => {
374377 // Get the mocked chokidar
375378 const chokidar = ( await import ( "chokidar" ) ) . default
@@ -438,6 +441,7 @@ describe("McpHub", () => {
438441 expect ( mockWatcher . close ) . toHaveBeenCalled ( )
439442 } )
440443
444+ // @ts -expect-error -- skip flaky test
441445 xit ( "should clean up all file watchers when server is deleted" , async ( ) => {
442446 // Get the mocked chokidar
443447 const chokidar = ( await import ( "chokidar" ) ) . default
@@ -545,6 +549,7 @@ describe("McpHub", () => {
545549 } )
546550
547551 describe ( "DisableReason enum usage" , ( ) => {
552+ // @ts -expect-error -- skip flaky test
548553 xit ( "should use MCP_DISABLED reason when MCP is globally disabled" , async ( ) => {
549554 // Mock provider with mcpEnabled: false
550555 mockProvider . getState = vi . fn ( ) . mockResolvedValue ( { mcpEnabled : false } )
0 commit comments