Skip to content

Commit 4f7d3b0

Browse files
committed
fix(fixtures): Restructure variables scopes, remove output sections, drop resource fixtures
- Convert debug variables scopes from array to keyed object, remove displayName - Remove output.stdout/stderr from build-and-run success fixtures - Remove remainingCount from test failure discovered items - Delete resource fixtures (devices, doctor, session-status, simulators)
1 parent e810b18 commit 4f7d3b0

File tree

9 files changed

+11
-263
lines changed

9 files changed

+11
-263
lines changed

src/snapshot-tests/__fixtures__/json/debugging/variables--success.json

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,14 @@
44
"didError": false,
55
"error": null,
66
"data": {
7-
"scopes": [
8-
{
9-
"scope": "locals",
10-
"displayName": "Locals",
7+
"scopes": {
8+
"locals": {
119
"variables": []
1210
},
13-
{
14-
"scope": "globals",
15-
"displayName": "Globals",
11+
"globals": {
1612
"variables": []
1713
},
18-
{
19-
"scope": "registers",
20-
"displayName": "Registers",
14+
"registers": {
2115
"groups": [
2216
{
2317
"name": "General Purpose Registers",
@@ -41,6 +35,6 @@
4135
}
4236
]
4337
}
44-
]
38+
}
4539
}
4640
}

src/snapshot-tests/__fixtures__/json/device/build-and-run--success.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@
1616
"deviceId": "<UUID>",
1717
"buildLogPath": "<HOME>/Library/Developer/XcodeBuildMCP/logs/build_run_device_<TIMESTAMP>_pid<PID>.log"
1818
},
19-
"output": {
20-
"stdout": [],
21-
"stderr": []
22-
},
2319
"diagnostics": {
2420
"warnings": [],
2521
"errors": []
2622
}
2723
}
28-
}
24+
}

src/snapshot-tests/__fixtures__/json/device/test--failure.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"CalculatorAppFeatureTests/CalculatorIntegrationTests/testChainCalculations",
2929
"CalculatorAppFeatureTests/CalculatorIntegrationTests/testComplexCalculation",
3030
"CalculatorAppFeatureTests/CalculatorIntegrationTests/testExpressionDisplay"
31-
],
32-
"remainingCount": 46
31+
]
3332
}
3433
},
3534
"diagnostics": {
@@ -51,4 +50,4 @@
5150
]
5251
}
5352
}
54-
}
53+
}

src/snapshot-tests/__fixtures__/json/resources/devices--success.json

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/snapshot-tests/__fixtures__/json/resources/doctor--success.json

Lines changed: 0 additions & 66 deletions
This file was deleted.

src/snapshot-tests/__fixtures__/json/resources/session-status--success.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/snapshot-tests/__fixtures__/json/resources/simulators--success.json

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/snapshot-tests/__fixtures__/json/simulator/build-and-run--success.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,9 @@
1818
"runtimeLogPath": "<HOME>/Library/Developer/XcodeBuildMCP/logs/io.sentry.calculatorapp_<TIMESTAMP>_pid<PID>.log",
1919
"osLogPath": "<HOME>/Library/Developer/XcodeBuildMCP/logs/io.sentry.calculatorapp_oslog_<TIMESTAMP>_pid<PID>.log"
2020
},
21-
"output": {
22-
"stdout": [],
23-
"stderr": []
24-
},
2521
"diagnostics": {
2622
"warnings": [],
2723
"errors": []
2824
}
2925
}
30-
}
26+
}

src/snapshot-tests/__fixtures__/json/simulator/test--failure.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"CalculatorAppFeatureTests/CalculatorIntegrationTests/testChainCalculations",
2828
"CalculatorAppFeatureTests/CalculatorIntegrationTests/testComplexCalculation",
2929
"CalculatorAppFeatureTests/CalculatorIntegrationTests/testExpressionDisplay"
30-
],
31-
"remainingCount": 46
30+
]
3231
}
3332
},
3433
"diagnostics": {
@@ -50,4 +49,4 @@
5049
]
5150
}
5251
}
53-
}
52+
}

0 commit comments

Comments
 (0)