@@ -7,13 +7,27 @@ import {
77} from "../../helpers.js" ;
88import { describe , expect , it } from "vitest" ;
99
10+ const isMacOSInGitHubActions = process . platform === 'darwin' && process . env . GITHUB_ACTIONS === 'true'
11+
1012describe ( "atlas-local-list-deployments" , ( ) => {
1113 const integration = setupIntegrationTest (
1214 ( ) => defaultTestConfig ,
1315 ( ) => defaultDriverOptions
1416 ) ;
1517
16- it ( "should have correct metadata" , async ( ) => {
18+ it . skipIf ( isMacOSInGitHubActions ) ( "should have the atlas-local-list-deployments tool" , async ( ) => {
19+ const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
20+ const listDeployments = tools . find ( ( tool ) => tool . name === "atlas-local-list-deployments" ) ;
21+ expectDefined ( listDeployments ) ;
22+ } ) ;
23+
24+ it . skipIf ( ! isMacOSInGitHubActions ) ( "[MacOS in GitHub Actions] should not have the atlas-local-list-deployments tool" , async ( ) => {
25+ const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
26+ const listDeployments = tools . find ( ( tool ) => tool . name === "atlas-local-list-deployments" ) ;
27+ expect ( listDeployments ) . toBeUndefined ( ) ;
28+ } ) ;
29+
30+ it . skipIf ( isMacOSInGitHubActions ) ( "should have correct metadata" , async ( ) => {
1731 const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
1832 const listDeployments = tools . find ( ( tool ) => tool . name === "atlas-local-list-deployments" ) ;
1933 expectDefined ( listDeployments ) ;
@@ -22,7 +36,7 @@ describe("atlas-local-list-deployments", () => {
2236 expect ( listDeployments . inputSchema . properties ) . toEqual ( { } ) ;
2337 } ) ;
2438
25- it ( "should not crash when calling the tool" , async ( ) => {
39+ it . skipIf ( isMacOSInGitHubActions ) ( "should not crash when calling the tool" , async ( ) => {
2640 const response = await integration . mcpClient ( ) . callTool ( {
2741 name : "atlas-local-list-deployments" ,
2842 arguments : { } ,
0 commit comments