File tree Expand file tree Collapse file tree 6 files changed +1271
-548
lines changed Expand file tree Collapse file tree 6 files changed +1271
-548
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,10 @@ workflows:
128
128
# TODO: implement typescript types
129
129
# - type-check:
130
130
# requires:
131
- # - linux-checkout
132
- # TODO: implement test
133
- # - jest:
134
- # requires:
135
- # - linux-checkout
131
+ # - linux-checkout
132
+ - jest :
133
+ requires :
134
+ - linux-checkout
136
135
- flow :
137
136
requires :
138
137
- linux-checkout
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import * as React from 'react' ;
2
+ import renderer from 'react-test-renderer' ;
3
+ import ProgressView from '../ProgressViewIOS.ios' ;
4
+
5
+ describe ( '<ProgressView />' , ( ) => {
6
+ it ( 'renders enabled ProgressView' , ( ) => {
7
+ const tree = renderer . create ( < ProgressView /> ) . toJSON ( ) ;
8
+
9
+ expect ( tree ) . toMatchSnapshot ( ) ;
10
+ } ) ;
11
+
12
+ it ( 'renders Horizontal ProgressView' , ( ) => {
13
+ const tree = renderer . create ( < ProgressView progressViewStyle = "bar" /> ) . toJSON ( ) ;
14
+
15
+ expect ( tree ) . toMatchSnapshot ( ) ;
16
+ } ) ;
17
+
18
+ it ( 'renders ProgressView with tintColor' , ( ) => {
19
+ const tree = renderer . create ( < ProgressView progressTintColor = "red" /> ) . toJSON ( ) ;
20
+
21
+ expect ( tree ) . toMatchSnapshot ( ) ;
22
+ } ) ;
23
+ } ) ;
Original file line number Diff line number Diff line change
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports [` <ProgressView /> renders Horizontal ProgressView 1` ] = `
4
+ <RNCProgressView
5
+ progressViewStyle = " bar"
6
+ style = {
7
+ Array [
8
+ Object {
9
+ " height" : 2 ,
10
+ },
11
+ undefined ,
12
+ ]
13
+ }
14
+ />
15
+ ` ;
16
+
17
+ exports [` <ProgressView /> renders ProgressView with tintColor 1` ] = `
18
+ <RNCProgressView
19
+ progressTintColor = " red"
20
+ style = {
21
+ Array [
22
+ Object {
23
+ " height" : 2 ,
24
+ },
25
+ undefined ,
26
+ ]
27
+ }
28
+ />
29
+ ` ;
30
+
31
+ exports [` <ProgressView /> renders enabled ProgressView 1` ] = `
32
+ <RNCProgressView
33
+ style = {
34
+ Array [
35
+ Object {
36
+ " height" : 2 ,
37
+ },
38
+ undefined ,
39
+ ]
40
+ }
41
+ />
42
+ ` ;
Original file line number Diff line number Diff line change 10
10
"run:ios" : " node node_modules/react-native/local-cli/cli.js run-ios --project-path \" ./example/ios\" " ,
11
11
"start" : " node node_modules/react-native/local-cli/cli.js start --projectRoot example --watchFolders $PWD" ,
12
12
"flow" : " flow" ,
13
+ "test" :" jest" ,
13
14
"lint" : " eslint ."
14
15
},
15
16
"peerDependencies" : {
27
28
"eslint" : " ^6.8.0" ,
28
29
"eslint-plugin-prettier" : " ^3.1.2" ,
29
30
"flow-bin" : " 0.105.2" ,
30
- "jest" : " 24.7.1 " ,
31
+ "jest" : " ^25.1.0 " ,
31
32
"metro-react-native-babel-preset" : " 0.53.1" ,
32
33
"prettier" : " ^1.19.1" ,
33
34
"react" : " 16.8.3" ,
You can’t perform that action at this time.
0 commit comments