Enable tests on CI again (currently will fail because of TS error in RNGH)

This commit is contained in:
Brent Vatne
2019-03-13 21:27:15 -07:00
parent 65629caadd
commit d3ce361d38
4 changed files with 6 additions and 16 deletions

View File

@@ -34,7 +34,6 @@ jobs:
paths:
- ~/.cache/yarn
- ~/react-navigation/examples/NavigationPlayground/node_modules
- ~/react-navigation/examples/ReduxExample/node_modules
# notify:
# webhooks:
# - url: https://react-navigation-ci.now.sh

View File

@@ -5,7 +5,7 @@
"scripts": {
"postinstall": "rm -rf node_modules/react-navigation/node_modules/react-native && rm -rf node_modules/react-navigation/node_modules/@types && rm -rf node_modules/react-navigation/node_modules/examples && rm -rf node_modules/react-navigation/node_modules/react-native-gesture-handler && rm -rf node_modules/react-navigation/node_modules/react",
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest",
"test": "jest && tsc",
"tsc": "tsc"
},
"dependencies": {

View File

@@ -407,9 +407,7 @@ declare module 'react-navigation' {
NavigationSceneRendererProps & {
mode: HeaderMode,
router: NavigationRouter<NavigationState, NavigationStackScreenOptions>,
getScreenDetails: NavigationScene => NavigationScreenDetails<
NavigationStackScreenOptions
>,
getScreenDetails: NavigationScene => NavigationScreenDetails<NavigationStackScreenOptions>,
leftInterpolator: (props: NavigationSceneRendererProps) => {},
titleInterpolator: (props: NavigationSceneRendererProps) => {},
rightInterpolator: (props: NavigationSceneRendererProps) => {},
@@ -660,9 +658,7 @@ declare module 'react-navigation' {
onWillBlur?: NavigationEventCallback,
onDidBlur?: NavigationEventCallback,
};
declare export var NavigationEvents: React$ComponentType<
_NavigationEventsProps
>;
declare export var NavigationEvents: React$ComponentType<_NavigationEventsProps>;
/**
* Navigation container
@@ -1041,9 +1037,7 @@ declare module 'react-navigation' {
*/
transitionConfig?: () => TransitionConfig,
} & NavigationNavigatorProps<NavigationStackScreenOptions, NavigationState>;
declare export var CardStackTransitioner: React$ComponentType<
_CardStackTransitionerProps
>;
declare export var CardStackTransitioner: React$ComponentType<_CardStackTransitionerProps>;
declare type _CardStackProps = {
screenProps?: {},
@@ -1114,9 +1108,7 @@ declare module 'react-navigation' {
truncatedTitle?: ?string,
width?: ?number,
};
declare export var HeaderBackButton: React$ComponentType<
_HeaderBackButtonProps
>;
declare export var HeaderBackButton: React$ComponentType<_HeaderBackButtonProps>;
declare type _DrawerViewProps = {
drawerLockMode?: 'unlocked' | 'locked-closed' | 'locked-open',

View File

@@ -4,6 +4,5 @@ set -eo pipefail
case $CIRCLE_NODE_INDEX in
0) yarn test && yarn codecov ;;
#1) cd examples/NavigationPlayground && yarn && yarn test ;;
#2) cd examples/ReduxExample && yarn && yarn test ;;
1) cd examples/NavigationPlayground && yarn && yarn test ;;
esac