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 11import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
2- import { jestTestMCPClient , describeAtlas } from "../../helpers.js" ;
2+ import { setupIntegrationTest , describeAtlas } from "../../helpers.js" ;
33
44describeAtlas ( "listProjects tool" , ( ) => {
5- const client = jestTestMCPClient ( ) ;
5+ const integration = setupIntegrationTest ( ) ;
66
77 it ( "should have correct metadata" , async ( ) => {
8- const { tools } = await client ( ) . listTools ( ) ;
8+ const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
99 const listProjects = tools . find ( ( tool ) => tool . name === "atlas-list-projects" ) ! ;
1010 expect ( listProjects ) . toBeDefined ( ) ;
1111 expect ( listProjects . inputSchema . type ) . toBe ( "object" ) ;
@@ -16,7 +16,7 @@ describeAtlas("listProjects tool", () => {
1616 } ) ;
1717
1818 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 ;
2020 expect ( response . content ) . toBeArray ( ) ;
2121 expect ( response . content ) . toHaveLength ( 1 ) ;
2222 expect ( response . content [ 0 ] . text ) . toContain ( "MCP Test" ) ;
You can’t perform that action at this time.
0 commit comments