Skip to content

Commit 30a99b0

Browse files
committed
fix
1 parent 4f32a00 commit 30a99b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/tools/atlas/listProjects.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2-
import { jestTestMCPClient, describeAtlas } from "../../helpers.js";
2+
import { setupIntegrationTest, describeAtlas } from "../../helpers.js";
33

44
describeAtlas("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");

0 commit comments

Comments
 (0)