Detox E2E 测试不会 运行 在 react-native 项目上

Detox E2E tests won't run on react-native project

我正在尝试在 react-native 项目中为 E2E 测试实施排毒,当我尝试 运行 排毒测试命令时,它只是挂起

当我 运行 调试同步时,我认为这是我 运行 遇到的问题:

DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=f1dbfa2b-7dff-df8d-8a71-66b0b637f61d)

然后最终循环吐出:

etox[63865] INFO:  [actions.js] Sync JavaScript Timers: Javascript Timers Ids: 13729, 13730
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[63865] INFO:  [actions.js] Sync JavaScript Timers: Javascript Timers Ids: 13741, 13742
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[63865] INFO:  [actions.js] Sync WXRunLoopIdlingResource: React Native thread is busy.
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.facebook.react.ShadowQueue

能够解决,我们的 RN 应用程序有一个加载动画启动画面,影响要连接的会话。能够通过在测试期间禁用动画来解决