File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/mcp/tools/project-discovery/__tests__ Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments