Skip to content

Commit ac0f3a8

Browse files
committed
test: Update list-schemes test to expect exposed CLI flags
1 parent 636fe5c commit ac0f3a8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/mcp/tools/project-discovery/__tests__/list_schemes.test.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@ describe('list_schemes plugin', () => {
2323
expect(typeof handler).toBe('function');
2424
});
2525

26-
it('should expose an empty public schema', () => {
26+
it('should expose projectPath and workspacePath in public schema', () => {
2727
const schemaObj = z.strictObject(schema);
2828
expect(schemaObj.safeParse({}).success).toBe(true);
2929
expect(schemaObj.safeParse({ projectPath: '/path/to/MyProject.xcodeproj' }).success).toBe(
30-
false,
30+
true,
3131
);
32-
expect(Object.keys(schema)).toEqual([]);
32+
expect(schemaObj.safeParse({ workspacePath: '/path/to/MyProject.xcworkspace' }).success).toBe(
33+
true,
34+
);
35+
expect(Object.keys(schema).sort()).toEqual(['projectPath', 'workspacePath']);
3336
});
3437
});
3538

0 commit comments

Comments
 (0)