Skip to content

feat: implement MCP resource for list_sims #155

feat: implement MCP resource for list_sims

feat: implement MCP resource for list_sims #155

Triggered via pull request July 23, 2025 09:10
Status Failure
Total duration 1m 14s
Artifacts

ci.yml

on: pull_request
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

9 errors
build-and-test (18.x)
Process completed with exit code 1.
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should include next steps guidance: src/core/__tests__/resources.test.ts#L274
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to contain 'Next Steps:' - Expected + Received - Next Steps: + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:274:39
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should filter out unavailable simulators: src/core/__tests__/resources.test.ts#L247
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to contain 'iPhone 15 Pro' - Expected + Received - iPhone 15 Pro + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:247:39
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should handle booted simulators correctly: src/core/__tests__/resources.test.ts#L215
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to contain '[Booted]' - Expected + Received - [Booted] + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:215:39
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should handle empty simulator data: src/core/__tests__/resources.test.ts#L189
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to contain 'Available iOS Simulators:' - Expected + Received - Available iOS Simulators: + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:189:39
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should handle spawn errors: src/core/__tests__/resources.test.ts#L175
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to contain 'spawn xcrun ENOENT' - Expected + Received - spawn xcrun ENOENT + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:175:39
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should handle JSON parsing errors: src/core/__tests__/resources.test.ts#L161
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to be 'invalid json' // Object.is equality - Expected + Received - invalid json + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:161:39
src/core/__tests__/resources.test.ts > resources > Simulators Resource Handler > should handle successful simulator data retrieval: src/core/__tests__/resources.test.ts#L131
AssertionError: expected 'Error retrieving simulator data: 🚨 R…' to contain 'Available iOS Simulators:' - Expected + Received - Available iOS Simulators: + Error retrieving simulator data: 🚨 REAL SYSTEM EXECUTOR DETECTED IN TEST! 🚨 + This test is trying to use the default command executor instead of a mock. + Fix: Pass createMockExecutor() as the commandExecutor parameter in your test. + Example: await plugin.handler(args, createMockExecutor({success: true}), mockFileSystem) + See docs/TESTING.md for proper testing patterns. ❯ src/core/__tests__/resources.test.ts:131:39
Unhandled error: src/core/__tests__/resources.test.ts#L167
Error: Unhandled error. (Error: spawn xcrun ENOENT at Timeout._onTimeout (/home/runner/work/XcodeBuildMCP/XcodeBuildMCP/src/core/__tests__/resources.test.ts:167:35) at listOnTimeout (node:internal/timers:569:17) at processTimers (node:internal/timers:512:7)) ❯ Timeout._onTimeout src/core/__tests__/resources.test.ts:167:35 ❯ listOnTimeout node:internal/timers:569:17 ❯ new NodeError node:internal/errors:405:5 ❯ MockChildProcess.emit node:events:506:17 ❯ Timeout._onTimeout src/core/__tests__/resources.test.ts:128:21 ❯ listOnTimeout node:internal/timers:569:17 ❯ process.processTimers node:internal/timers:512:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_UNHANDLED_ERROR', context: { stack: 'Error: spawn xcrun ENOENT\n at Timeout._onTimeout (/home/runner/work/XcodeBuildMCP/XcodeBuildMCP/src/core/__tests__/resources.test.ts:167:35)\n at listOnTimeout (node:internal/timers:569:17)\n at processTimers (node:internal/timers:512:7)', message: 'spawn xcrun ENOENT', constructor: 'Function<Error>', name: 'Error', toString: 'Function<toString>', __defineGetter__: 'Function<__defineGetter__>', __defineSetter__: 'Function<__defineSetter__>', hasOwnProperty: 'Function<hasOwnProperty>', __lookupGetter__: 'Function<__lookupGetter__>', __lookupSetter__: 'Function<__lookupSetter__>', isPrototypeOf: 'Function<isPrototypeOf>', propertyIsEnumerable: 'Function<propertyIsEnumerable>', valueOf: 'Function<valueOf>', __proto__: { constructor: 'Function<Error>', name: 'Error', message: '', toString: 'Function<toString>', __defineGetter__: 'Function<__defineGetter__>', __defineSetter__: 'Function<__defineSetter__>', hasOwnProperty: 'Function<hasOwnProperty>', __lookupGetter__: 'Function<__lookupGetter__>', __lookupSetter__: 'Function<__lookupSetter__>', isPrototypeOf: 'Function<isPrototypeOf>', propertyIsEnumerable: 'Function<propertyIsEnumerable>', valueOf: 'Function<valueOf>', __proto__: { constructor: 'Function<Object>', __defineGetter__: 'Function<__defineGetter__>', __defineSetter__: 'Function<__defineSetter__>', hasOwnProperty: 'Function<hasOwnProperty>', __lookupGetter__: 'Function<__lookupGetter__>', __lookupSetter__: 'Function<__lookupSetter__>', isPrototypeOf: 'Function<isPrototypeOf>', propertyIsEnumerable: 'Function<propertyIsEnumerable>', toString: 'Function<toString>', valueOf: 'Function<valueOf>', __proto__: null, toLocaleString: 'Function<toLocaleString>' }, toLocaleString: 'Function<toLocaleString>' }, toLocaleString: 'Function<toLocaleString>' } } This error originated in "src/core/__tests__/resources.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.