Automate test (#704)

* test automation

* accept PR comments and update the script.

* upgrade the auto script

* update the script comment.

* tackle all comments.
This commit is contained in:
BO KANG
2017-02-21 14:57:22 -08:00
committed by GitHub
parent 0c2aa44f5f
commit 6d878bcde2
3 changed files with 76 additions and 7 deletions

View File

@@ -11,12 +11,6 @@ import {
import CodePush from "react-native-code-push";
/**
* Configured with a MANUAL check frequency for easy testing. For production apps, it is recommended to configure a
* different check frequency, such as ON_APP_START, for a 'hands-off' approach where CodePush.sync() does not
* need to be explicitly called. All options of CodePush.sync() are also available in this decorator.
*/
@CodePush({ checkFrequency: CodePush.CheckFrequency.MANUAL })
class CodePushDemoApp extends Component {
constructor() {
super();
@@ -156,4 +150,13 @@ const styles = StyleSheet.create({
},
});
AppRegistry.registerComponent("CodePushDemoApp", () => CodePushDemoApp);
/**
* Configured with a MANUAL check frequency for easy testing. For production apps, it is recommended to configure a
* different check frequency, such as ON_APP_START, for a 'hands-off' approach where CodePush.sync() does not
* need to be explicitly called. All options of CodePush.sync() are also available in this decorator.
*/
let codePushOptions = { checkFrequency: CodePush.CheckFrequency.MANUAL };
CodePushDemoApp = CodePush(codePushOptions)(CodePushDemoApp);
AppRegistry.registerComponent("CodePushDemoApp", () => CodePushDemoApp);