Skip to content

Commit 570c564

Browse files
Cristian Carlessofacebook-github-bot
Cristian Carlesso
authored andcommitted
Update Jest to 19.0.2
Reviewed By: cpojer Differential Revision: D4608167 fbshipit-source-id: c30febe287b4a7ad0237039cfdd5b6bd6fb66d1d
1 parent 6a14f0b commit 570c564

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

Libraries/Components/Touchable/__tests__/__snapshots__/TouchableHighlight-test.js.snap

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
13
exports[`TouchableHighlight renders correctly 1`] = `
24
<View
35
accessibilityComponentType={undefined}
@@ -23,11 +25,13 @@ exports[`TouchableHighlight renders correctly 1`] = `
2325
]
2426
}
2527
testID={undefined}
26-
tvParallaxProperties={undefined}>
28+
tvParallaxProperties={undefined}
29+
>
2730
<Text
2831
accessible={true}
2932
allowFontScaling={true}
30-
ellipsizeMode="tail">
33+
ellipsizeMode="tail"
34+
>
3135
Touchable
3236
</Text>
3337
</View>
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
exports[`processTransform validation should throw on invalid transform property 1`] = `"Invalid transform translateW: {\"translateW\":10}"`;
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`processTransform validation should throw on object with multiple properties 1`] = `"You must specify exactly one property per transform object. Passed properties: {\"scale\":0.5,\"translateY\":10}"`;
3+
exports[`processTransform validation should throw on invalid transform property 1`] = `"Invalid transform translateW: {\\"translateW\\":10}"`;
44

5-
exports[`processTransform validation should throw when not passing an array to an array prop 1`] = `"Transform with key of matrix must have an array as the value: {\"matrix\":\"not-a-matrix\"}"`;
5+
exports[`processTransform validation should throw on object with multiple properties 1`] = `"You must specify exactly one property per transform object. Passed properties: {\\"scale\\":0.5,\\"translateY\\":10}"`;
66

7-
exports[`processTransform validation should throw when not passing an array to an array prop 2`] = `"Transform with key of translate must have an array as the value: {\"translate\":10}"`;
7+
exports[`processTransform validation should throw when not passing an array to an array prop 1`] = `"Transform with key of matrix must have an array as the value: {\\"matrix\\":\\"not-a-matrix\\"}"`;
88

9-
exports[`processTransform validation should throw when passing a matrix of the wrong size 1`] = `"Matrix transform must have a length of 9 (2d) or 16 (3d). Provided matrix has a length of 4: {\"matrix\":[1,1,1,1]}"`;
9+
exports[`processTransform validation should throw when not passing an array to an array prop 2`] = `"Transform with key of translate must have an array as the value: {\\"translate\\":10}"`;
1010

11-
exports[`processTransform validation should throw when passing a perspective of 0 1`] = `"Transform with key of \"perspective\" cannot be zero: {\"perspective\":0}"`;
11+
exports[`processTransform validation should throw when passing a matrix of the wrong size 1`] = `"Matrix transform must have a length of 9 (2d) or 16 (3d). Provided matrix has a length of 4: {\\"matrix\\":[1,1,1,1]}"`;
1212

13-
exports[`processTransform validation should throw when passing a translate of the wrong size 1`] = `"Transform with key translate must be an array of length 2 or 3, found 1: {\"translate\":[1]}"`;
13+
exports[`processTransform validation should throw when passing a perspective of 0 1`] = `"Transform with key of \\"perspective\\" cannot be zero: {\\"perspective\\":0}"`;
1414

15-
exports[`processTransform validation should throw when passing a translate of the wrong size 2`] = `"Transform with key translate must be an array of length 2 or 3, found 4: {\"translate\":[1,1,1,1]}"`;
15+
exports[`processTransform validation should throw when passing a translate of the wrong size 1`] = `"Transform with key translate must be an array of length 2 or 3, found 1: {\\"translate\\":[1]}"`;
16+
17+
exports[`processTransform validation should throw when passing a translate of the wrong size 2`] = `"Transform with key translate must be an array of length 2 or 3, found 4: {\\"translate\\":[1,1,1,1]}"`;
1618

1719
exports[`processTransform validation should throw when passing an Animated.Value 1`] = `"You passed an Animated.Value to a normal component. You need to wrap that component in an Animated. For example, replace <View /> by <Animated.View />."`;
1820

19-
exports[`processTransform validation should throw when passing an invalid angle prop 1`] = `"Transform with key of \"rotate\" must be a string: {\"rotate\":10}"`;
21+
exports[`processTransform validation should throw when passing an invalid angle prop 1`] = `"Transform with key of \\"rotate\\" must be a string: {\\"rotate\\":10}"`;
2022

21-
exports[`processTransform validation should throw when passing an invalid angle prop 2`] = `"Rotate transform must be expressed in degrees (deg) or radians (rad): {\"skewX\":\"10drg\"}"`;
23+
exports[`processTransform validation should throw when passing an invalid angle prop 2`] = `"Rotate transform must be expressed in degrees (deg) or radians (rad): {\\"skewX\\":\\"10drg\\"}"`;
2224

23-
exports[`processTransform validation should throw when passing an invalid value to a number prop 1`] = `"Transform with key of \"translateY\" must be a number: {\"translateY\":\"20deg\"}"`;
25+
exports[`processTransform validation should throw when passing an invalid value to a number prop 1`] = `"Transform with key of \\"translateY\\" must be a number: {\\"translateY\\":\\"20deg\\"}"`;
2426

25-
exports[`processTransform validation should throw when passing an invalid value to a number prop 2`] = `"Transform with key of \"scale\" must be a number: {\"scale\":{\"x\":10,\"y\":10}}"`;
27+
exports[`processTransform validation should throw when passing an invalid value to a number prop 2`] = `"Transform with key of \\"scale\\" must be a number: {\\"scale\\":{\\"x\\":10,\\"y\\":10}}"`;
2628

27-
exports[`processTransform validation should throw when passing an invalid value to a number prop 3`] = `"Transform with key of \"perspective\" must be a number: {\"perspective\":[]}"`;
29+
exports[`processTransform validation should throw when passing an invalid value to a number prop 3`] = `"Transform with key of \\"perspective\\" must be a number: {\\"perspective\\":[]}"`;

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"immutable": "~3.7.6",
160160
"imurmurhash": "^0.1.4",
161161
"inquirer": "^0.12.0",
162-
"jest-haste-map": "18.0.0",
162+
"jest-haste-map": "19.0.0",
163163
"joi": "^6.6.1",
164164
"json-stable-stringify": "^1.0.1",
165165
"json5": "^0.4.0",
@@ -207,9 +207,9 @@
207207
"eslint-plugin-flowtype": "^2.20.0",
208208
"eslint-plugin-react": "^6.4.1",
209209
"flow-bin": "^0.39.0",
210-
"jest": "18.0.0",
211-
"jest-repl": "18.0.0",
212-
"jest-runtime": "18.0.0",
210+
"jest": "19.0.2",
211+
"jest-repl": "19.0.2",
212+
"jest-runtime": "19.0.2",
213213
"mock-fs": "^3.11.0",
214214
"react": "16.0.0-alpha.2",
215215
"react-dom": "16.0.0-alpha.2",

0 commit comments

Comments
 (0)