Closed mdjastrzebski closed 1 day ago
@mdjastrzebski thanks for flagging this! We identified the root cause in this commit: https://github.com/facebook/react-native/commit/464a202ba6f007e35f2c79db6b71ef0de6e0f07a
We have to update the Flow syntax Babel plugin used by Jest but this problem should not give issues at runtime. Also, is a bit weird as we should be using the Hermes parser for Flow in Jest tests, but it looks like we are not? 🤔 @huntie @robhogan has more expertise in this area.
@cipolleschi thanks for checking this. I've run into this when I wanted to check how RN 0.76 + React 19 would work with RN Testing Library. I'll wait for a fix and resume my checks afterwards.
I wanted to check how RN 0.76 + React 19
Given that React 19 has not been released as stable yet, we are reverting the React 19 bump. React native 0.76 will ship with React 18.3.1
Description
yarn test
fails on RN app from nightly template.Error:
This does not seem to be related to
react-test-renderer
deprecation but rather to Flow processing in RN repo.Steps to reproduce
npx react-native init RnNightly --version nightly
yarn install
yarn test
fails with reported error.React Native Version
0.76.0-nightly-20240905-62ee5c9b8
Affected Platforms
Other (please specify)
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/mdjastrzebski/rn-0.76-nightly-test
Screenshots and Videos
No response