-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate exported config from TestBundle.js, remove js_glob override (#…
…34161) Summary: Pull Request resolved: #34161 This is a follow up to D37648363 (64fe676) which breaks up `TestBundle.js` into two modules. This enables `TestApps.js` (which defines and exports the set of integration test apps) to be required in the Meta-specific dependency graph without violating our internal naming pattern for JS entry points. `force_include_bundles` is removed from the `js_glob` macro signature. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D37686883 fbshipit-source-id: 492c13dfcdd76ea8347d4d11c85818e31777c663
- Loading branch information
1 parent
13a0556
commit 86b4acb
Showing
4 changed files
with
113 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/** | ||
* 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'; | ||
|
||
// Disable LogBox so we do not have to mock its dependencies. | ||
require('react-native').LogBox.ignoreAllLogs(true); | ||
|
||
// Include callable JS modules first, in case one of the other ones below throws | ||
require('./ProgressBarTestModule'); | ||
require('./ViewRenderingTestModule'); | ||
require('./TestJavaToJSArgumentsModule'); | ||
require('./TestJSLocaleModule'); | ||
require('./TestJSToJavaParametersModule'); | ||
require('./TestJavaToJSReturnValuesModule'); | ||
require('./UIManagerTestModule'); | ||
require('./CatalystRootViewTestModule'); | ||
require('./MeasureLayoutTestModule'); | ||
require('./ScrollViewTestModule'); | ||
require('./ShareTestModule'); | ||
require('./SwipeRefreshLayoutTestModule'); | ||
require('./TextInputTestModule'); | ||
|
||
// Define catalyst test apps used in integration tests | ||
const apps = [ | ||
{ | ||
appKey: 'AnimatedTransformTestApp', | ||
component: () => | ||
require('./AnimatedTransformTestModule').AnimatedTransformTestApp, | ||
}, | ||
{ | ||
appKey: 'CatalystRootViewTestApp', | ||
component: () => | ||
require('./CatalystRootViewTestModule').CatalystRootViewTestApp, | ||
}, | ||
{ | ||
appKey: 'JSResponderTestApp', | ||
component: () => require('./JSResponderTestApp'), | ||
}, | ||
{ | ||
appKey: 'HorizontalScrollViewTestApp', | ||
component: () => | ||
require('./ScrollViewTestModule').HorizontalScrollViewTestApp, | ||
}, | ||
{ | ||
appKey: 'ImageOverlayColorTestApp', | ||
component: () => require('./ImageOverlayColorTestApp'), | ||
}, | ||
{ | ||
appKey: 'ImageErrorTestApp', | ||
component: () => require('./ImageErrorTestApp'), | ||
}, | ||
{ | ||
appKey: 'InitialPropsTestApp', | ||
component: () => require('./InitialPropsTestApp'), | ||
}, | ||
{ | ||
appKey: 'LayoutEventsTestApp', | ||
component: () => require('./LayoutEventsTestApp'), | ||
}, | ||
{ | ||
appKey: 'MeasureLayoutTestApp', | ||
component: () => require('./MeasureLayoutTestModule').MeasureLayoutTestApp, | ||
}, | ||
{ | ||
appKey: 'MultitouchHandlingTestAppModule', | ||
component: () => require('./MultitouchHandlingTestAppModule'), | ||
}, | ||
{ | ||
appKey: 'NativeIdTestApp', | ||
component: () => require('./NativeIdTestModule').NativeIdTestApp, | ||
}, | ||
{ | ||
appKey: 'ScrollViewTestApp', | ||
component: () => require('./ScrollViewTestModule').ScrollViewTestApp, | ||
}, | ||
{ | ||
appKey: 'ShareTestApp', | ||
component: () => require('./ShareTestModule').ShareTestApp, | ||
}, | ||
{ | ||
appKey: 'SubviewsClippingTestApp', | ||
component: () => require('./SubviewsClippingTestModule').App, | ||
}, | ||
{ | ||
appKey: 'SwipeRefreshLayoutTestApp', | ||
component: () => | ||
require('./SwipeRefreshLayoutTestModule').SwipeRefreshLayoutTestApp, | ||
}, | ||
{ | ||
appKey: 'TextInputTestApp', | ||
component: () => require('./TextInputTestModule').TextInputTestApp, | ||
}, | ||
{ | ||
appKey: 'TestIdTestApp', | ||
component: () => require('./TestIdTestModule').TestIdTestApp, | ||
}, | ||
{ | ||
appKey: 'TouchBubblingTestAppModule', | ||
component: () => require('./TouchBubblingTestAppModule'), | ||
}, | ||
]; | ||
|
||
module.exports = apps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters