Uh oh!
There was an error while loading. Please reload this page.
[standards] Migrate "androidTest" JS from Haste to path-based requires - #24813
[standards] Migrate "androidTest" JS from Haste to path-based requires#24813ide wants to merge 1 commit into
Conversation
The files in `ReactAndroid/src/androidTest/js` use Haste names; this commit migrates them to use path-based imports. This helps us move RN towards standard path-based requires. All the requires in `androidTest` have been rewritten to use relative requires. Test Plan: Run lint, Flow, and Android tests: ``` node cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests ```
analysis-bot
left a comment
There was a problem hiding this comment.
Code analysis results:
eslintfound some issues. Runyarn lint --fixto automatically fix problems.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
| const React = require('react'); | ||
| const {NativeModules, Text} = require('react-native'); | ||
| const {Recording: RecordingModule} = NativeModules; |
There was a problem hiding this comment.
This should be InitialPropsRecordingModule.
I am fixing it internally, just commenting here for posterity.
react-native-bot
commented
May 14, 2019
This pull request was successfully merged by @ide in cd9adda. When will my fix make it into a release? | Upcoming Releases |
Summary
The files in
ReactAndroid/src/androidTest/jsuse Haste names; this commit migrates them to use path-based imports. This helps us move RN towards standard path-based requires. All the requires inandroidTesthave been rewritten to use relative requires.Changelog
[General] [Changed] - Migrate "androidTest" JS from Haste to path-based requires
Test Plan
Run lint, Flow, and Android tests:
Also run CI.