Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Enable babel transpiling of react-native as well
This fixes the code coverage github action. Without this change, we were getting the error ``` i FAIL www/__tests__/DateSelect.test.tsx β Test suite failed to run SyntaxError: /private/tmp/e-mission-phone/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js: Unexpected token, expected "]" (39:5) ``` The last successful run was from Oct 17. The first failed run was from Oct 23. We have not made any changes to the react-native components that we directly import since Sept 2024. However, we use a carat semver, so we will pull newly released minor versions. One of our dependencies bumped up the version of RN that they use, and released a new minor version, which broke this. After fruitlessly searching around for a root cause (as documented in the PR comments), since we import a lot of components and it was laborious to check when each of them have been updated, I did a brute force search in GitHub for this error and found both the same issue facebook/react-native#48228 and a fix that worked facebook/react-native#48228 (comment) I am surprised this has not been reported widely, but I guess it is fairly new! Thanks to @Basil-Code for the suggestion!
- Loading branch information