mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-29 21:04:53 +08:00
Don't print AppRegistry message in unit tests
This commit is contained in:
@@ -90,7 +90,7 @@ export default class AppRegistry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static runApplication(appKey: string, appParameters: Object): void {
|
static runApplication(appKey: string, appParameters: Object): void {
|
||||||
const isDevelopment = process.env.NODE_ENV !== 'production';
|
const isDevelopment = process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test';
|
||||||
if (isDevelopment) {
|
if (isDevelopment) {
|
||||||
const params = { ...appParameters };
|
const params = { ...appParameters };
|
||||||
params.rootTag = `#${params.rootTag.id}`;
|
params.rootTag = `#${params.rootTag.id}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user