Skip to content

Commit bd36c25

Browse files
authored
Upgrade react-native-harness to 1.3.0 (#279)
Upgrades harness from 1.1.0 to 1.3.0. Key improvements: - Bridge RPC closes immediately on app disconnect instead of waiting for timeout - New internal RPC transport with heartbeat-based liveness detection - Dead app connections fail fast instead of ambiguous "device did not respond" after 90s Should reduce intermittent CI flakiness.
1 parent 7b21fea commit bd36c25

3 files changed

Lines changed: 711 additions & 110 deletions

File tree

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"@react-native-community/cli": "18.0.0",
3535
"@react-native-community/cli-platform-android": "18.0.0",
3636
"@react-native-community/cli-platform-ios": "18.0.0",
37-
"@react-native-harness/platform-android": "1.1.0",
38-
"@react-native-harness/platform-apple": "1.1.0",
37+
"@react-native-harness/platform-android": "1.3.0",
38+
"@react-native-harness/platform-apple": "1.3.0",
3939
"@react-native/babel-preset": "0.79.2",
4040
"@react-native/metro-config": "0.79.2",
4141
"@react-native/typescript-config": "0.79.2",
@@ -44,7 +44,7 @@
4444
"babel-plugin-react-compiler": "^1.0.0",
4545
"deep-equal": "^2.2.3",
4646
"react-native-builder-bob": "^0.40.10",
47-
"react-native-harness": "1.1.0"
47+
"react-native-harness": "1.3.0"
4848
},
4949
"engines": {
5050
"node": ">=18"

example/src/tests/TestsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export default function TestsPage() {
144144
setTestStates((prev) => new Map(prev).set(key, { status: 'running' }));
145145

146146
try {
147-
await test.fn();
147+
await (test.fn as () => void | Promise<void>)();
148148
setTestStates((prev) => new Map(prev).set(key, { status: 'passed' }));
149149
} catch (e) {
150150
const errorMessage = e instanceof Error ? e.message : String(e);

0 commit comments

Comments
 (0)