mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: upgrade Jest and RN to latest (#837)
* chore: upgrade Jest and RN to latest * chore: update test timeout
This commit is contained in:
committed by
GitHub
parent
2f5208b93b
commit
7726a6d074
+9
-8
@@ -36,24 +36,24 @@
|
||||
"@release-it/conventional-changelog": "^2.0.0",
|
||||
"@testing-library/jest-native": "~3.4.3",
|
||||
"@types/react": "^17.0.0",
|
||||
"@types/react-native": "^0.64.4",
|
||||
"@types/react-native": "^0.65.7",
|
||||
"@types/react-test-renderer": "^17.0.0",
|
||||
"babel-jest": "^26.0.1",
|
||||
"babel-jest": "^27.0.0",
|
||||
"conventional-changelog-cli": "^2.0.11",
|
||||
"dedent": "^0.7.0",
|
||||
"eslint": "^7.0.0",
|
||||
"flow-bin": "^0.141.0",
|
||||
"flow-copy-source": "^2.0.9",
|
||||
"jest": "^26.0.1",
|
||||
"react": "^17.0.1",
|
||||
"react-native": "^0.64.0-rc.1",
|
||||
"react-test-renderer": "^17.0.1",
|
||||
"jest": "^27.0.0",
|
||||
"react": "^17.0.2",
|
||||
"react-native": "^0.66.0",
|
||||
"react-test-renderer": "^17.0.2",
|
||||
"release-it": "^14.0.3",
|
||||
"strip-ansi": "^6.0.0",
|
||||
"typescript": "^4.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"pretty-format": "^26.0.1"
|
||||
"pretty-format": "^27.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": ">=16.0.0",
|
||||
@@ -79,6 +79,7 @@
|
||||
"rootDir": "./src",
|
||||
"testPathIgnorePatterns": [
|
||||
"timerUtils"
|
||||
]
|
||||
],
|
||||
"testTimeout": 30000
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,38 +11,28 @@ exports[`debug 1`] = `
|
||||
not fresh
|
||||
</Text>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
placeholder=\\"Add custom freshness\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaCustomFreshness\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"Custom Freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What did you inspect?\\"
|
||||
placeholder=\\"Who inspected freshness?\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaChef\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"I inspected freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What banana?\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"hello\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"\\"
|
||||
/>
|
||||
<View
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={true}
|
||||
nativeID=\\"animatedComponent\\"
|
||||
onClick={[Function onClick]}
|
||||
onResponderGrant={[Function onResponderGrant]}
|
||||
onResponderMove={[Function onResponderMove]}
|
||||
@@ -87,33 +77,21 @@ exports[`debug changing component: bananaFresh button message should now be "fre
|
||||
fresh
|
||||
</Text>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
placeholder=\\"Add custom freshness\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaCustomFreshness\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"Custom Freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What did you inspect?\\"
|
||||
placeholder=\\"Who inspected freshness?\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaChef\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"I inspected freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What banana?\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"hello\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"\\"
|
||||
/>
|
||||
<View
|
||||
@@ -163,33 +141,21 @@ exports[`debug: shallow 1`] = `
|
||||
not fresh
|
||||
</Text>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
placeholder=\\"Add custom freshness\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaCustomFreshness\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"Custom Freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What did you inspect?\\"
|
||||
placeholder=\\"Who inspected freshness?\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaChef\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"I inspected freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What banana?\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"hello\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"\\"
|
||||
/>
|
||||
<MyButton
|
||||
@@ -227,33 +193,21 @@ exports[`debug: shallow with message 1`] = `
|
||||
not fresh
|
||||
</Text>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
placeholder=\\"Add custom freshness\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaCustomFreshness\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"Custom Freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What did you inspect?\\"
|
||||
placeholder=\\"Who inspected freshness?\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaChef\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"I inspected freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What banana?\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"hello\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"\\"
|
||||
/>
|
||||
<MyButton
|
||||
@@ -291,38 +245,28 @@ exports[`debug: with message 1`] = `
|
||||
not fresh
|
||||
</Text>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
placeholder=\\"Add custom freshness\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaCustomFreshness\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"Custom Freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What did you inspect?\\"
|
||||
placeholder=\\"Who inspected freshness?\\"
|
||||
rejectResponderTermination={true}
|
||||
testID=\\"bananaChef\\"
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"I inspected freshie\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"What banana?\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
/>
|
||||
<TextInput
|
||||
allowFontScaling={true}
|
||||
defaultValue=\\"hello\\"
|
||||
rejectResponderTermination={true}
|
||||
underlineColorAndroid=\\"transparent\\"
|
||||
value=\\"\\"
|
||||
/>
|
||||
<View
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={true}
|
||||
nativeID=\\"animatedComponent\\"
|
||||
onClick={[Function onClick]}
|
||||
onResponderGrant={[Function onResponderGrant]}
|
||||
onResponderMove={[Function onResponderMove]}
|
||||
@@ -359,7 +303,9 @@ exports[`debug: with message 1`] = `
|
||||
exports[`toJSON 1`] = `
|
||||
<View
|
||||
accessible={true}
|
||||
collapsable={false}
|
||||
focusable={false}
|
||||
nativeID="animatedComponent"
|
||||
onClick={[Function]}
|
||||
onResponderGrant={[Function]}
|
||||
onResponderMove={[Function]}
|
||||
|
||||
Reference in New Issue
Block a user