Skip to content

Commit 56fd549

Browse files
committed
(PC-15161) build(deps): add babel plugin polyfills for tests + log ignore for test warning
Add a log ignore for this warning: "ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from'deprecated-react-native-prop-types'" This warning comes from modules react-native-dash and react-native-date-picker that still use ViewPropTypes. We'll be able to remove this log ignore once react-native-dash have remove references to ViewPropTypes (obipawan/react-native-dash#36) and once we bump react-native-date-picker to 4.2.2 version
1 parent 5cc9b9d commit 56fd549

112 files changed

Lines changed: 280 additions & 7283 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

__snapshots__/features/_marketingAndCommunication/pages/tests/DeeplinksGenerator.test.tsx.native-snap

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ Array [
6969
accessible={true}
7070
collapsable={false}
7171
focusable={true}
72-
nativeID="animatedComponent"
7372
onClick={[Function]}
7473
onResponderGrant={[Function]}
7574
onResponderMove={[Function]}
@@ -245,7 +244,6 @@ Array [
245244
accessible={true}
246245
collapsable={false}
247246
focusable={true}
248-
nativeID="animatedComponent"
249247
onClick={[Function]}
250248
onLayout={[Function]}
251249
onResponderGrant={[Function]}
@@ -295,7 +293,6 @@ Array [
295293
</Text>
296294
<View
297295
collapsable={false}
298-
nativeID="animatedComponent"
299296
style={
300297
Object {
301298
"transform": Array [
@@ -320,7 +317,6 @@ Array [
320317
</View>
321318
<View
322319
collapsable={false}
323-
nativeID="animatedComponent"
324320
style={
325321
Object {
326322
"height": 0,
@@ -369,7 +365,6 @@ Array [
369365
accessible={true}
370366
collapsable={false}
371367
focusable={true}
372-
nativeID="animatedComponent"
373368
onClick={[Function]}
374369
onResponderGrant={[Function]}
375370
onResponderMove={[Function]}
@@ -476,7 +471,6 @@ Array [
476471
accessible={true}
477472
collapsable={false}
478473
focusable={true}
479-
nativeID="animatedComponent"
480474
onClick={[Function]}
481475
onResponderGrant={[Function]}
482476
onResponderMove={[Function]}
@@ -583,7 +577,6 @@ Array [
583577
accessible={true}
584578
collapsable={false}
585579
focusable={true}
586-
nativeID="animatedComponent"
587580
onClick={[Function]}
588581
onResponderGrant={[Function]}
589582
onResponderMove={[Function]}
@@ -699,7 +692,6 @@ Array [
699692
accessible={true}
700693
collapsable={false}
701694
focusable={true}
702-
nativeID="animatedComponent"
703695
onClick={[Function]}
704696
onResponderGrant={[Function]}
705697
onResponderMove={[Function]}
@@ -806,7 +798,6 @@ Array [
806798
accessible={true}
807799
collapsable={false}
808800
focusable={true}
809-
nativeID="animatedComponent"
810801
onClick={[Function]}
811802
onResponderGrant={[Function]}
812803
onResponderMove={[Function]}
@@ -913,7 +904,6 @@ Array [
913904
accessible={true}
914905
collapsable={false}
915906
focusable={true}
916-
nativeID="animatedComponent"
917907
onClick={[Function]}
918908
onResponderGrant={[Function]}
919909
onResponderMove={[Function]}
@@ -1012,7 +1002,6 @@ Array [
10121002
accessible={true}
10131003
collapsable={false}
10141004
focusable={true}
1015-
nativeID="animatedComponent"
10161005
onClick={[Function]}
10171006
onLayout={[Function]}
10181007
onResponderGrant={[Function]}
@@ -1062,7 +1051,6 @@ Array [
10621051
</Text>
10631052
<View
10641053
collapsable={false}
1065-
nativeID="animatedComponent"
10661054
style={
10671055
Object {
10681056
"transform": Array [
@@ -1087,7 +1075,6 @@ Array [
10871075
</View>
10881076
<View
10891077
collapsable={false}
1090-
nativeID="animatedComponent"
10911078
style={
10921079
Object {
10931080
"height": 0,
@@ -1245,7 +1232,6 @@ Array [
12451232
accessible={true}
12461233
collapsable={false}
12471234
focusable={true}
1248-
nativeID="animatedComponent"
12491235
onClick={[Function]}
12501236
onLayout={[Function]}
12511237
onResponderGrant={[Function]}
@@ -1295,7 +1281,6 @@ Array [
12951281
</Text>
12961282
<View
12971283
collapsable={false}
1298-
nativeID="animatedComponent"
12991284
style={
13001285
Object {
13011286
"transform": Array [
@@ -1320,7 +1305,6 @@ Array [
13201305
</View>
13211306
<View
13221307
collapsable={false}
1323-
nativeID="animatedComponent"
13241308
style={
13251309
Object {
13261310
"height": 0,
@@ -1829,7 +1813,6 @@ Array [
18291813
accessible={true}
18301814
collapsable={false}
18311815
focusable={true}
1832-
nativeID="animatedComponent"
18331816
onClick={[Function]}
18341817
onLayout={[Function]}
18351818
onResponderGrant={[Function]}
@@ -1879,7 +1862,6 @@ Array [
18791862
</Text>
18801863
<View
18811864
collapsable={false}
1882-
nativeID="animatedComponent"
18831865
style={
18841866
Object {
18851867
"transform": Array [
@@ -1904,7 +1886,6 @@ Array [
19041886
</View>
19051887
<View
19061888
collapsable={false}
1907-
nativeID="animatedComponent"
19081889
style={
19091890
Object {
19101891
"height": 0,
@@ -2094,7 +2075,6 @@ Array [
20942075
accessible={true}
20952076
collapsable={false}
20962077
focusable={true}
2097-
nativeID="animatedComponent"
20982078
onClick={[Function]}
20992079
onResponderGrant={[Function]}
21002080
onResponderMove={[Function]}
@@ -2367,7 +2347,6 @@ Array [
23672347
accessible={true}
23682348
collapsable={false}
23692349
focusable={true}
2370-
nativeID="animatedComponent"
23712350
onClick={[Function]}
23722351
onResponderGrant={[Function]}
23732352
onResponderMove={[Function]}

__snapshots__/features/auth/forgottenPassword/ForgottenPassword/tests/ForgottenPassword.native.test.tsx.native-snap

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,7 @@ exports[`<ForgottenPassword /> should enable validate button when email input is
55
- First value
66
+ Second value
77

8-
@@ -124,13 +124,11 @@
9-
]
10-
}
11-
>
12-
<View
13-
accessible={true}
14-
- collapsable={false}
15-
focusable={true}
16-
- nativeID=\\"animatedComponent\\"
17-
onClick={[Function onClick]}
18-
onResponderGrant={[Function onResponderGrant]}
19-
onResponderMove={[Function onResponderMove]}
20-
onResponderRelease={[Function onResponderRelease]}
21-
onResponderTerminate={[Function onResponderTerminate]}
22-
@@ -216,13 +214,11 @@
23-
]
24-
}
25-
>
26-
<View
27-
accessible={true}
28-
- collapsable={false}
29-
focusable={true}
30-
- nativeID=\\"animatedComponent\\"
31-
onClick={[Function onClick]}
32-
onResponderGrant={[Function onResponderGrant]}
33-
onResponderMove={[Function onResponderMove]}
34-
onResponderRelease={[Function onResponderRelease]}
35-
onResponderTerminate={[Function onResponderTerminate]}
36-
@@ -411,11 +407,11 @@
8+
@@ -409,11 +409,11 @@
379
\\"paddingTop\\": 0,
3810
},
3911
]
@@ -46,15 +18,13 @@ exports[`<ForgottenPassword /> should enable validate button when email input is
4618
</View>
4719
<View
4820
numberOfSpaces={6}
49-
@@ -428,24 +424,22 @@
50-
}
21+
@@ -427,22 +427,22 @@
5122
/>
5223
<View
5324
accessibilityLabel=\\"Valider\\"
5425
accessible={true}
55-
- collapsable={false}
26+
collapsable={false}
5627
- focusable={false}
57-
- nativeID=\\"animatedComponent\\"
5828
+ focusable={true}
5929
onClick={[Function onClick]}
6030
onResponderGrant={[Function onResponderGrant]}
@@ -73,7 +43,7 @@ exports[`<ForgottenPassword /> should enable validate button when email input is
7343
\\"justifyContent\\": \\"center\\",
7444
\\"maxWidth\\": 500,
7545
\\"minHeight\\": 40,
76-
@@ -464,11 +458,11 @@
46+
@@ -461,11 +461,11 @@
7747
adjustsFontSizeToFit={false}
7848
numberOfLines={1}
7949
style={

__snapshots__/features/auth/forgottenPassword/ReinitializePassword/tests/ReinitializePassword.native.test.tsx.native-snap

Lines changed: 13 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
55
- First value
66
+ Second value
77

8-
@@ -163,13 +163,11 @@
9-
]
10-
}
11-
>
12-
<View
13-
accessible={true}
14-
- collapsable={false}
15-
focusable={true}
16-
- nativeID=\\"animatedComponent\\"
17-
onClick={[Function onClick]}
18-
onResponderGrant={[Function onResponderGrant]}
19-
onResponderMove={[Function onResponderMove]}
20-
onResponderRelease={[Function onResponderRelease]}
21-
onResponderTerminate={[Function onResponderTerminate]}
22-
@@ -349,18 +347,16 @@
8+
@@ -348,11 +348,11 @@
239
\\"flexShrink\\": 1,
2410
},
2511
]
@@ -31,15 +17,8 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
3117
<View
3218
accessibilityLabel=\\"Afficher le mot de passe\\"
3319
accessible={true}
34-
- collapsable={false}
35-
focusable={true}
36-
- nativeID=\\"animatedComponent\\"
37-
onClick={[Function onClick]}
38-
onResponderGrant={[Function onResponderGrant]}
39-
onResponderMove={[Function onResponderMove]}
40-
onResponderRelease={[Function onResponderRelease]}
41-
onResponderTerminate={[Function onResponderTerminate]}
42-
@@ -416,15 +412,15 @@
20+
collapsable={false}
21+
@@ -414,15 +414,15 @@
4322
]
4423
}
4524
>
@@ -57,7 +36,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
5736
<View
5837
numberOfSpaces={1}
5938
style={
60-
@@ -434,15 +430,15 @@
39+
@@ -432,15 +432,15 @@
6140
},
6241
]
6342
}
@@ -75,7 +54,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
7554
\\"fontSize\\": 12,
7655
\\"lineHeight\\": 16,
7756
\\"paddingLeft\\": 4,
78-
@@ -465,15 +461,15 @@
57+
@@ -463,15 +463,15 @@
7958
]
8059
}
8160
>
@@ -93,7 +72,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
9372
<View
9473
numberOfSpaces={1}
9574
style={
96-
@@ -483,15 +479,15 @@
75+
@@ -481,15 +481,15 @@
9776
},
9877
]
9978
}
@@ -111,7 +90,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
11190
\\"fontSize\\": 12,
11291
\\"lineHeight\\": 16,
11392
\\"paddingLeft\\": 4,
114-
@@ -514,15 +510,15 @@
93+
@@ -512,15 +512,15 @@
11594
]
11695
}
11796
>
@@ -129,7 +108,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
129108
<View
130109
numberOfSpaces={1}
131110
style={
132-
@@ -532,15 +528,15 @@
111+
@@ -530,15 +530,15 @@
133112
},
134113
]
135114
}
@@ -147,7 +126,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
147126
\\"fontSize\\": 12,
148127
\\"lineHeight\\": 16,
149128
\\"paddingLeft\\": 4,
150-
@@ -563,15 +559,15 @@
129+
@@ -561,15 +561,15 @@
151130
]
152131
}
153132
>
@@ -165,7 +144,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
165144
<View
166145
numberOfSpaces={1}
167146
style={
168-
@@ -581,15 +577,15 @@
147+
@@ -579,15 +579,15 @@
169148
},
170149
]
171150
}
@@ -183,7 +162,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
183162
\\"fontSize\\": 12,
184163
\\"lineHeight\\": 16,
185164
\\"paddingLeft\\": 4,
186-
@@ -612,15 +608,15 @@
165+
@@ -610,15 +610,15 @@
187166
]
188167
}
189168
>
@@ -201,7 +180,7 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
201180
<View
202181
numberOfSpaces={1}
203182
style={
204-
@@ -630,15 +626,15 @@
183+
@@ -628,15 +628,15 @@
205184
},
206185
]
207186
}
@@ -218,33 +197,5 @@ exports[`ReinitializePassword Page should validate PasswordSecurityRules when pa
218197
\\"fontFamily\\": \\"Montserrat-SemiBold\\",
219198
\\"fontSize\\": 12,
220199
\\"lineHeight\\": 16,
221-
\\"paddingLeft\\": 4,
222-
@@ -793,13 +789,11 @@
223-
value=\\"\\"
224-
/>
225-
<View
226-
accessibilityLabel=\\"Afficher le mot de passe\\"
227-
accessible={true}
228-
- collapsable={false}
229-
focusable={true}
230-
- nativeID=\\"animatedComponent\\"
231-
onClick={[Function onClick]}
232-
onResponderGrant={[Function onResponderGrant]}
233-
onResponderMove={[Function onResponderMove]}
234-
onResponderRelease={[Function onResponderRelease]}
235-
onResponderTerminate={[Function onResponderTerminate]}
236-
@@ -851,13 +845,11 @@
237-
}
238-
/>
239-
<View
240-
accessibilityLabel=\\"Continuer\\"
241-
accessible={true}
242-
- collapsable={false}
243-
focusable={false}
244-
- nativeID=\\"animatedComponent\\"
245-
onClick={[Function onClick]}
246-
onResponderGrant={[Function onResponderGrant]}
247-
onResponderMove={[Function onResponderMove]}
248-
onResponderRelease={[Function onResponderRelease]}
249-
onResponderTerminate={[Function onResponderTerminate]}"
200+
\\"paddingLeft\\": 4,"
250201
`;

0 commit comments

Comments
 (0)