File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tests/integration/tools/atlas Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
2
- import { jestTestMCPClient , describeAtlas } from "../../helpers.js" ;
2
+ import { setupIntegrationTest , describeAtlas } from "../../helpers.js" ;
3
3
4
4
describeAtlas ( "listProjects tool" , ( ) => {
5
- const client = jestTestMCPClient ( ) ;
5
+ const integration = setupIntegrationTest ( ) ;
6
6
7
7
it ( "should have correct metadata" , async ( ) => {
8
- const { tools } = await client ( ) . listTools ( ) ;
8
+ const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
9
9
const listProjects = tools . find ( ( tool ) => tool . name === "atlas-list-projects" ) ! ;
10
10
expect ( listProjects ) . toBeDefined ( ) ;
11
11
expect ( listProjects . inputSchema . type ) . toBe ( "object" ) ;
@@ -16,7 +16,7 @@ describeAtlas("listProjects tool", () => {
16
16
} ) ;
17
17
18
18
it ( "returns project names" , async ( ) => {
19
- const response = ( await client ( ) . callTool ( { name : "atlas-list-projects" , arguments : { } } ) ) as CallToolResult ;
19
+ const response = ( await integration . mcpClient ( ) . callTool ( { name : "atlas-list-projects" , arguments : { } } ) ) as CallToolResult ;
20
20
expect ( response . content ) . toBeArray ( ) ;
21
21
expect ( response . content ) . toHaveLength ( 1 ) ;
22
22
expect ( response . content [ 0 ] . text ) . toContain ( "MCP Test" ) ;
You can’t perform that action at this time.
0 commit comments