Skip to content

chore: upgrade Jest and RN to latest #837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -79,6 +79,7 @@
"rootDir": "./src",
"testPathIgnorePatterns": [
"timerUtils"
]
],
"testTimeout": 30000
}
}
66 changes: 6 additions & 60 deletions src/__tests__/__snapshots__/render.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]}
Expand Down Expand Up @@ -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]}
Expand Down
Loading