chore: bump Jest, remove flaky inline snapshot (#150)

### Summary

Bumping Jest to latest, removed inline snapshot as there's a pending bug with trailing whitespaces inside of it being removed by IDEs (solution is to make them regular snapshots, but in this case the test was just plain unnecessary)

### Test plan

CI
This commit is contained in:
Michał Pierzchała
2019-04-14 10:41:03 +02:00
committed by GitHub
parent 439db6c823
commit 1938a5091e
4 changed files with 582 additions and 270 deletions
+5
View File
@@ -0,0 +1,5 @@
// added for Jest inline snapshots to not use default Prettier config
module.exports = {
singleQuote: true,
trailingComma: "es5"
}
+2 -3
View File
@@ -11,18 +11,17 @@
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/runtime": "^7.1.2",
"@callstack/eslint-config": "^4.0.1",
"@types/react": "^16.7.11",
"@types/react-test-renderer": "^16.0.3",
"babel-jest": "^24.1.0",
"babel-jest": "^24.7.1",
"chalk": "^2.4.1",
"conventional-changelog-cli": "^2.0.11",
"dedent": "^0.7.0",
"eslint": "^5.15.2",
"flow-bin": "^0.97.0",
"flow-copy-source": "^2.0.2",
"jest": "^24.1.0",
"jest": "^24.7.1",
"metro-react-native-babel-preset": "^0.52.0",
"react": "^16.8.3",
"react-native": "^0.59.0",
-9
View File
@@ -150,15 +150,6 @@ test('getByText, queryByText with children as Array', () => {
const { getByText } = render(<BananaStore />);
const { toJSON } = render(<BananaCounter numBananas={3} />);
expect(toJSON()).toMatchInlineSnapshot(`
<Text>
There are
3
bananas in the bunch
</Text>
`);
const threeBananaBunch = getByText('There are 3 bananas in the bunch');
expect(threeBananaBunch.props.children).toEqual([
'There are ',
+575 -258
View File
File diff suppressed because it is too large Load Diff