File tree Expand file tree Collapse file tree 6 files changed +1286
-553
lines changed Expand file tree Collapse file tree 6 files changed +1286
-553
lines changed Original file line number Diff line number Diff line change 39
39
jobs :
40
40
# Set up a Linux environment for downstream jobs
41
41
linux-checkout :
42
- executor : rn/linux_js
42
+ executor :
43
+ name : rn/linux_js
44
+ node_version : ' 10'
43
45
steps :
44
46
- attach_workspace :
45
47
at : .
@@ -50,28 +52,36 @@ jobs:
50
52
paths : .
51
53
52
54
eslint :
53
- executor : rn/linux_js
55
+ executor :
56
+ name : rn/linux_js
57
+ node_version : ' 10'
54
58
steps :
55
59
- attach_workspace :
56
60
at : .
57
61
- run : *eslint
58
62
59
63
type-check :
60
- executor : rn/linux_js
64
+ executor :
65
+ name : rn/linux_js
66
+ node_version : ' 10'
61
67
steps :
62
68
- attach_workspace :
63
69
at : .
64
70
- run : *type-check
65
71
66
72
flow :
67
- executor : rn/linux_js
73
+ executor :
74
+ name : rn/linux_js
75
+ node_version : ' 10'
68
76
steps :
69
77
- attach_workspace :
70
78
at : .
71
79
- run : *flow
72
80
73
81
jest :
74
- executor : rn/linux_js
82
+ executor :
83
+ name : rn/linux_js
84
+ node_version : ' 10'
75
85
steps :
76
86
- attach_workspace :
77
87
at : .
@@ -128,11 +138,10 @@ workflows:
128
138
# TODO: implement typescript types
129
139
# - type-check:
130
140
# requires:
131
- # - linux-checkout
132
- # TODO: implement test
133
- # - jest:
134
- # requires:
135
- # - linux-checkout
141
+ # - linux-checkout
142
+ - jest :
143
+ requires :
144
+ - linux-checkout
136
145
- flow :
137
146
requires :
138
147
- 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