From 43d69ee26cbf4d4cc9b64aafbcdc32f3df0f27f9 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Tue, 18 Jun 2024 02:53:18 -0700 Subject: [PATCH] Fix ReactNativeReloads test case (#45011) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45011 Changelog: [Internal] Fixes an inspector-proxy test case that was (silently) incorrect. This is in preparation for an upcoming rewrite of the core of inspector-proxy to more strictly isolate session state, which causes the incorrect test to fail. Reviewed By: hoxyq Differential Revision: D58193527 fbshipit-source-id: bdc27179210117ca9249b272f2e4aff19ba8a06c --- .../src/__tests__/InspectorProxyReactNativeReloads-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dev-middleware/src/__tests__/InspectorProxyReactNativeReloads-test.js b/packages/dev-middleware/src/__tests__/InspectorProxyReactNativeReloads-test.js index a89ddbd08ed..08cfb6088d3 100644 --- a/packages/dev-middleware/src/__tests__/InspectorProxyReactNativeReloads-test.js +++ b/packages/dev-middleware/src/__tests__/InspectorProxyReactNativeReloads-test.js @@ -236,7 +236,7 @@ describe('inspector proxy React Native reloads', () => { * We can reuse our existing debugger connection to the synthetic page. * Messages from the updated page will be routed to the debugger. */ - device1.sendWrappedEvent('originalPage-initial', { + device1.sendWrappedEvent('originalPage-updated', { error: 'Another mock error', });