Skip to content

feat: Unify tools

feat: Unify tools #236

Triggered via pull request August 13, 2025 20:50
Status Failure
Total duration 59s
Artifacts

ci.yml

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

Annotations

5 errors
build-and-test (24.x)
Process completed with exit code 1.
src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts > launch_app_sim tool > Handler Behavior (Complete Literal Returns) > should handle successful app launch: src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts#L91
AssertionError: expected { content: [ { type: 'text', …(1) } ] } to deeply equal { content: [ { …(2) }, { …(2) } ] } - Expected + Received { "content": [ { - "text": "App launched successfully in simulator test-uuid-123", - "type": "text", - }, - { - "text": "Next Steps: - 1. You can now interact with the app in the simulator. - 2. Log capture options: - - Option 1: Capture structured logs only (app continues running): - start_sim_log_cap({ simulatorUuid: \"test-uuid-123\", bundleId: \"com.example.testapp\" }) - - Option 2: Capture both console and structured logs (app will restart): - start_sim_log_cap({ simulatorUuid: \"test-uuid-123\", bundleId: \"com.example.testapp\", captureConsole: true }) - - Option 3: Restart with logs in one step: - launch_app_logs_sim({ simulatorUuid: \"test-uuid-123\", bundleId: \"com.example.testapp\" }) + "text": "✅ App launched successfully in simulator test-uuid-123. If simulator window isn't visible, use: open_sim() - 3. When done with any option, use: stop_sim_log_cap({ logSessionId: 'SESSION_ID' })", + Next Steps: + 1. To see the simulator window (if hidden): open_sim() + 2. Log capture options: + - Capture structured logs: start_sim_log_cap({ simulatorUuid: \"test-uuid-123\", bundleId: \"com.example.testapp\" }) + - Capture console+structured logs: start_sim_log_cap({ simulatorUuid: \"test-uuid-123\", bundleId: \"com.example.testapp\", captureConsole: true }) + 3. When done, use: stop_sim_log_cap({ logSessionId: 'SESSION_ID' })", "type": "text", }, ], } ❯ src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts:91:22
src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts > launch_app_sim tool > Export Field Validation (Literal) > should have correct description field: src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts#L13
AssertionError: expected 'Launches an app in an iOS simulator. …' to be 'Launches an app in an iOS simulator. …' // Object.is equality - Expected + Received - Launches an app in an iOS simulator. IMPORTANT: You MUST provide both the simulatorUuid and bundleId parameters. + Launches an app in an iOS simulator. If simulator window isn't visible, use open_sim() first. IMPORTANT: You MUST provide both the simulatorUuid and bundleId parameters. Note: You must install the app in the simulator before launching. The typical workflow is: build → install → launch. Example: launch_app_sim({ simulatorUuid: 'YOUR_UUID_HERE', bundleId: 'com.example.MyApp' }) ❯ src/mcp/tools/simulator/__tests__/launch_app_sim.test.ts:13:40
src/mcp/tools/simulator/__tests__/boot_sim.test.ts > boot_sim tool > Handler Behavior (Complete Literal Returns) > should handle successful boot: src/mcp/tools/simulator/__tests__/boot_sim.test.ts#L56
AssertionError: expected { content: [ { type: 'text', …(1) } ] } to deeply equal { content: [ { type: 'text', …(1) } ] } - Expected + Received { "content": [ { - "text": "Simulator booted successfully. Next steps: - 1. Open the Simulator app: open_sim({ enabled: true }) + "text": "✅ Simulator booted successfully. To make it visible, use: open_sim() + + Next steps: + 1. Open the Simulator app (makes it visible): open_sim() 2. Install an app: install_app_sim({ simulatorUuid: \"test-uuid-123\", appPath: \"PATH_TO_YOUR_APP\" }) - 3. Launch an app: launch_app_sim({ simulatorUuid: \"test-uuid-123\", bundleId: \"YOUR_APP_BUNDLE_ID\" }) - 4. Log capture options: - - Option 1: Capture structured logs only (app continues running): - start_sim_log_cap({ simulatorUuid: \"test-uuid-123\", bundleId: \"YOUR_APP_BUNDLE_ID\" }) - - Option 2: Capture both console and structured logs (app will restart): - start_sim_log_cap({ simulatorUuid: \"test-uuid-123\", bundleId: \"YOUR_APP_BUNDLE_ID\", captureConsole: true }) - - Option 3: Launch app with logs in one step: - launch_app_logs_sim({ simulatorUuid: \"test-uuid-123\", bundleId: \"YOUR_APP_BUNDLE_ID\" })", + 3. Launch an app: launch_app_sim({ simulatorUuid: \"test-uuid-123\", bundleId: \"YOUR_APP_BUNDLE_ID\" })", "type": "text", }, ], } ❯ src/mcp/tools/simulator/__tests__/boot_sim.test.ts:56:22
src/mcp/tools/simulator/__tests__/boot_sim.test.ts > boot_sim tool > Export Field Validation (Literal) > should have correct description: src/mcp/tools/simulator/__tests__/boot_sim.test.ts#L23
AssertionError: expected 'Boots an iOS simulator. After booting…' to be 'Boots an iOS simulator. IMPORTANT: Yo…' // Object.is equality Expected: "Boots an iOS simulator. IMPORTANT: You MUST provide the simulatorUuid parameter. Example: boot_sim({ simulatorUuid: 'YOUR_UUID_HERE' })" Received: "Boots an iOS simulator. After booting, use open_sim() to make the simulator visible. IMPORTANT: You MUST provide the simulatorUuid parameter. Example: boot_sim({ simulatorUuid: 'YOUR_UUID_HERE' })" ❯ src/mcp/tools/simulator/__tests__/boot_sim.test.ts:23:35