File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 16
16
},
17
17
"jest" : {
18
18
"preset" : " jest-react-native" ,
19
+ "setupFiles" : [
20
+ ],
19
21
"unmockedModulePathPatterns" : [
20
- " react-native" ,
21
- " firestack"
22
+ " ./node_modules/react" ,
23
+ " ./node_modules/react-native" ,
24
+ " ./node_modules/react-native-mock" ,
25
+ " ./node_modules/react-addons-test-utils"
22
26
]
23
27
},
24
28
"license" : " ISC" ,
52
56
"mocha" : " ^3.0.2" ,
53
57
"react" : " ^15.3.0" ,
54
58
"react-dom" : " ^15.3.0" ,
55
- "react-native-mock" : " ^0.2.5 " ,
59
+ "react-native-mock" : " ^0.2.6 " ,
56
60
"react-test-renderer" : " ^15.3.0" ,
57
61
"should" : " ^11.1.0" ,
58
- "sinon" : " ^1.17.5 "
62
+ "sinon" : " ^2.0.0-pre.2 "
59
63
},
60
64
"dependencies" : {
61
65
"es6-symbol" : " ^3.1.0"
Original file line number Diff line number Diff line change
1
+ require ( 'react-native-mock/mock' ) ;
2
+
3
+ var { NativeEventEmitter, NativeModules } = require ( 'react-native' ) ;
4
+
5
+ NativeModules . Firestack = {
6
+
7
+ }
You can’t perform that action at this time.
0 commit comments