We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f103eb5 commit 532d640Copy full SHA for 532d640
1 file changed
src/mcp/tools/project-discovery/__tests__/list_schemes.test.ts
@@ -23,13 +23,16 @@ describe('list_schemes plugin', () => {
23
expect(typeof handler).toBe('function');
24
});
25
26
- it('should expose an empty public schema', () => {
+ it('should expose projectPath and workspacePath in public schema', () => {
27
const schemaObj = z.strictObject(schema);
28
expect(schemaObj.safeParse({}).success).toBe(true);
29
expect(schemaObj.safeParse({ projectPath: '/path/to/MyProject.xcodeproj' }).success).toBe(
30
- false,
+ true,
31
);
32
- expect(Object.keys(schema)).toEqual([]);
+ expect(schemaObj.safeParse({ workspacePath: '/path/to/MyProject.xcworkspace' }).success).toBe(
33
34
+ );
35
+ expect(Object.keys(schema).sort()).toEqual(['projectPath', 'workspacePath']);
36
37
38
0 commit comments