File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,24 @@ import { config } from "../../src/config.js";
3
3
import { describeWithMongoDB } from "./tools/mongodb/mongodbHelpers.js" ;
4
4
5
5
describe ( "Server integration test" , ( ) => {
6
- describeWithMongoDB ( "without atlas" , ( integration ) => {
7
- it ( "should return positive number of tools and have no atlas tools" , async ( ) => {
8
- const tools = await integration . mcpClient ( ) . listTools ( ) ;
9
- expectDefined ( tools ) ;
10
- expect ( tools . tools . length ) . toBeGreaterThan ( 0 ) ;
6
+ describeWithMongoDB (
7
+ "without atlas" ,
8
+ ( integration ) => {
9
+ it ( "should return positive number of tools and have no atlas tools" , async ( ) => {
10
+ const tools = await integration . mcpClient ( ) . listTools ( ) ;
11
+ expectDefined ( tools ) ;
12
+ expect ( tools . tools . length ) . toBeGreaterThan ( 0 ) ;
11
13
12
- const atlasTools = tools . tools . filter ( ( tool ) => tool . name . startsWith ( "atlas-" ) ) ;
13
- expect ( atlasTools . length ) . toBeLessThanOrEqual ( 0 ) ;
14
- } ) ;
15
- } ) ;
14
+ const atlasTools = tools . tools . filter ( ( tool ) => tool . name . startsWith ( "atlas-" ) ) ;
15
+ expect ( atlasTools . length ) . toBeLessThanOrEqual ( 0 ) ;
16
+ } ) ;
17
+ } ,
18
+ ( ) => ( {
19
+ ...config ,
20
+ apiClientId : undefined ,
21
+ apiClientSecret : undefined ,
22
+ } )
23
+ ) ;
16
24
17
25
describe ( "with atlas" , ( ) => {
18
26
const integration = setupIntegrationTest ( ( ) => ( {
You can’t perform that action at this time.
0 commit comments