Attempt to fix test_android by adding a react-native.config.js inside rn-tester (#33901)
Summary: `test_android` is now red because I had to specify a root for RN tester. The job is now failing as it fails to find the correct platforms for the bundler command. This PR fixes it. ## Changelog [Internal] - Attempt to fix test_android by moving react-native.config.js Pull Request resolved: https://github.com/facebook/react-native/pull/33901 Test Plan: Tested locally + will wait for a CI result Reviewed By: cipolleschi Differential Revision: D36625857 Pulled By: cortinico fbshipit-source-id: 01852cc966e611c6724ba528ea351a17011d62e2
This commit is contained in:
Родитель
0bd5239553
Коммит
1ee7a0a67e
|
@ -0,0 +1,36 @@
|
|||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const ios = require('@react-native-community/cli-platform-ios');
|
||||
const android = require('@react-native-community/cli-platform-android');
|
||||
|
||||
module.exports = {
|
||||
commands: [...ios.commands, ...android.commands],
|
||||
platforms: {
|
||||
ios: {
|
||||
projectConfig: ios.projectConfig,
|
||||
dependencyConfig: ios.dependencyConfig,
|
||||
},
|
||||
android: {
|
||||
projectConfig: android.projectConfig,
|
||||
dependencyConfig: android.dependencyConfig,
|
||||
},
|
||||
},
|
||||
reactNativePath: '../../',
|
||||
project: {
|
||||
ios: {
|
||||
sourceDir: '.',
|
||||
},
|
||||
android: {
|
||||
sourceDir: '.',
|
||||
},
|
||||
},
|
||||
};
|
Загрузка…
Ссылка в новой задаче