()
| 13 | const configPath = path.join(cwd, '.xcodebuildmcp', 'config.yaml'); |
| 14 | |
| 15 | function mockDeviceListJson(): string { |
| 16 | return JSON.stringify({ |
| 17 | result: { |
| 18 | devices: [ |
| 19 | { |
| 20 | identifier: 'DEVICE-1', |
| 21 | visibilityClass: 'Default', |
| 22 | connectionProperties: { |
| 23 | pairingState: 'paired', |
| 24 | tunnelState: 'connected', |
| 25 | }, |
| 26 | deviceProperties: { |
| 27 | name: 'Cam iPhone', |
| 28 | platformIdentifier: 'com.apple.platform.iphoneos', |
| 29 | }, |
| 30 | }, |
| 31 | ], |
| 32 | }, |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | function createSetupFs(opts?: { |
| 37 | storedConfig?: string; |