File tree Expand file tree Collapse file tree 4 files changed +13
-44
lines changed Expand file tree Collapse file tree 4 files changed +13
-44
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import App from '../App/App';
9
9
// Note: test renderer must be required after react-native.
10
10
import renderer from 'react-test-renderer' ;
11
11
12
- it ( 'renders correctly' , ( ) => {
12
+ jest . useFakeTimers ( ) ;
13
+
14
+ it ( 'renders correctly' , async ( ) => {
13
15
renderer . create ( < App /> ) ;
14
16
} ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"scripts" : {
6
6
"start" : " node node_modules/react-native/local-cli/cli.js start" ,
7
- "test" : " jest" ,
7
+ "test" : " jest --detectOpenHandles " ,
8
8
"prettier-fix" : " prettier --write **/*.js" ,
9
9
"prettier-check" : " prettier --list-different **/*.js" ,
10
10
"lint-fix" : " eslint --fix ." ,
16
16
"prop-types" : " ^15.7.2" ,
17
17
"react" : " 16.8.3" ,
18
18
"react-native" : " 0.59.9" ,
19
- "react-native-gesture-handler" : " ^1.1 .0" ,
19
+ "react-native-gesture-handler" : " ^1.3 .0" ,
20
20
"react-navigation" : " ^3.6.0" ,
21
21
"react-redux" : " ^6.0.1" ,
22
22
"redux" : " ^4.0.1" ,
47
47
},
48
48
"jest" : {
49
49
"preset" : " react-native" ,
50
- "transformIgnorePatterns" : [
51
- " node_modules/(?!(jest-)?react-native|react-navigation|@react-navigation.*)"
52
- ],
53
50
"setupFiles" : [
54
- " ./jest.setup.js"
51
+ " ./node_modules/react-native-gesture-handler/jestSetup.js"
52
+ ],
53
+ "transformIgnorePatterns" : [
54
+ " /node_modules/(?!react-native|@react-navigation)/.+"
55
55
]
56
56
}
57
57
}
Original file line number Diff line number Diff line change @@ -5793,10 +5793,10 @@ react-lifecycles-compat@^3.0.4:
5793
5793
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
5794
5794
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
5795
5795
5796
- react-native-gesture-handler@^1.1 .0 :
5797
- version "1.1 .0"
5798
- resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.1 .0.tgz#2a7d545ad2e0ca23adce22b2af441ad360ecccee "
5799
- integrity sha512-E9IKHpmL+sz/iCYkUriTUjBaQBORWV+oheYPQleADkxjo2sYsQfnlyTz4EQYFONkUwJ6WmfTNkYt2/yc5U4Ziw ==
5796
+ react-native-gesture-handler@^1.3 .0 :
5797
+ version "1.3 .0"
5798
+ resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.3 .0.tgz#d0386f565928ccc1849537f03f2e37fd5f6ad43f "
5799
+ integrity sha512-ASRFIXBuKRvqlmwkWJhV8yP2dTpvcqVrLNpd7FKVBFHYWr6SAxjGyO9Ik8w1lAxDhMlRP2IcJ9p9eq5X2WWeLQ ==
5800
5800
dependencies :
5801
5801
hoist-non-react-statics "^2.3.1"
5802
5802
invariant "^2.2.2"
You can’t perform that action at this time.
0 commit comments