@@ -7,13 +7,27 @@ import {
7
7
} from "../../helpers.js" ;
8
8
import { describe , expect , it } from "vitest" ;
9
9
10
+ const isMacOSInGitHubActions = process . platform === 'darwin' && process . env . GITHUB_ACTIONS === 'true'
11
+
10
12
describe ( "atlas-local-list-deployments" , ( ) => {
11
13
const integration = setupIntegrationTest (
12
14
( ) => defaultTestConfig ,
13
15
( ) => defaultDriverOptions
14
16
) ;
15
17
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 ( ) => {
17
31
const { tools } = await integration . mcpClient ( ) . listTools ( ) ;
18
32
const listDeployments = tools . find ( ( tool ) => tool . name === "atlas-local-list-deployments" ) ;
19
33
expectDefined ( listDeployments ) ;
@@ -22,7 +36,7 @@ describe("atlas-local-list-deployments", () => {
22
36
expect ( listDeployments . inputSchema . properties ) . toEqual ( { } ) ;
23
37
} ) ;
24
38
25
- it ( "should not crash when calling the tool" , async ( ) => {
39
+ it . skipIf ( isMacOSInGitHubActions ) ( "should not crash when calling the tool" , async ( ) => {
26
40
const response = await integration . mcpClient ( ) . callTool ( {
27
41
name : "atlas-local-list-deployments" ,
28
42
arguments : { } ,
0 commit comments