File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { InMemoryTransport } from "./inMemoryTransport.js";
33import { Server } from "../../src/server.js" ;
44import { ObjectId } from "mongodb" ;
55import { config , UserConfig } from "../../src/config.js" ;
6- import { McpError , ToolListChangedNotificationSchema } from "@modelcontextprotocol/sdk/types.js" ;
6+ import { McpError } from "@modelcontextprotocol/sdk/types.js" ;
77import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" ;
88import { Session } from "../../src/session.js" ;
99import { toIncludeAllMembers } from "jest-extended" ;
@@ -78,7 +78,6 @@ export function setupIntegrationTest(userConfigGetter: () => UserConfig = () =>
7878 afterEach ( async ( ) => {
7979 if ( mcpServer ) {
8080 await mcpServer . session . close ( ) ;
81- mcpServer . userConfig . connectionString = undefined ;
8281 }
8382 } ) ;
8483
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ export function describeWithMongoDB(
2020 const mdbIntegration = setupMongoDBIntegrationTest ( ) ;
2121 const integration = setupIntegrationTest ( ( ) => userConfigGetter ( mdbIntegration ) ) ;
2222
23+ afterEach ( ( ) => {
24+ integration . mcpServer ( ) . userConfig . connectionString = undefined ;
25+ } ) ;
26+
2327 fn ( {
2428 ...integration ,
2529 ...mdbIntegration ,
You can’t perform that action at this time.
0 commit comments