mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
Enable tests on CI again (currently will fail because of TS error in RNGH)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user