Skip to content

Commit 5017c20

Browse files
chore(deps): update jest monorepo to v29 (major) (#393)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com.> Co-authored-by: Michał Pierzchała <[email protected]>
1 parent f9fb983 commit 5017c20

File tree

5 files changed

+383
-383
lines changed

5 files changed

+383
-383
lines changed

.github/workflows/nodejs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [12.x, 14.x, 16.x, 18.x]
12+
node-version: [14.x, 16.x, 18.x]
1313

1414
steps:
1515
- uses: actions/checkout@v3

__tests__/__snapshots__/setSerializers.test.js.snap

+10-10
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
exports[`default rendered components can use contextLines 1`] = `
44
"Snapshot Diff:
5-
- <NestedComponent test=\\"say\\" />
6-
+ <NestedComponent test=\\"my name\\" />
5+
- <NestedComponent test="say" />
6+
+ <NestedComponent test="my name" />
77
88
@@ -4,1 +4,1 @@
99
- say
@@ -12,8 +12,8 @@ exports[`default rendered components can use contextLines 1`] = `
1212

1313
exports[`default rendered components diffs components 1`] = `
1414
"Snapshot Diff:
15-
- <NestedComponent test=\\"say\\" />
16-
+ <NestedComponent test=\\"my name\\" />
15+
- <NestedComponent test="say" />
16+
+ <NestedComponent test="my name" />
1717
1818
@@ -1,9 +1,9 @@
1919
<div>
@@ -89,8 +89,8 @@ exports[`values which are not components can use contextLines 1`] = `
8989
+ Second value
9090
9191
@@ -3,1 +3,1 @@
92-
- \\"hello\\": \\"world\\",
93-
+ \\"hello\\": \\"there\\","
92+
- "hello": "world",
93+
+ "hello": "there","
9494
`;
9595
9696
exports[`values which are not components diffs objects 1`] = `
@@ -99,9 +99,9 @@ exports[`values which are not components diffs objects 1`] = `
9999
+ Second value
100100
101101
Object {
102-
\\"foo\\": \\"bar\\",
103-
- \\"hello\\": \\"world\\",
104-
+ \\"hello\\": \\"there\\",
105-
\\"testing\\": 123,
102+
"foo": "bar",
103+
- "hello": "world",
104+
+ "hello": "there",
105+
"testing": 123,
106106
}"
107107
`;

__tests__/__snapshots__/snapshotDiff.test.js.snap

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ exports[`can use contextLines on diff 1`] = `
3232

3333
exports[`can use contextLines with React components 1`] = `
3434
"Snapshot Diff:
35-
- <Component namedJestMock={[MockFunction test-mock-name]} test=\\"say\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
36-
+ <Component namedJestMock={[MockFunction test-mock-name]} test=\\"my name\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
35+
- <Component namedJestMock={[MockFunction test-mock-name]} test="say" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
36+
+ <Component namedJestMock={[MockFunction test-mock-name]} test="my name" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
3737
3838
@@ -10,1 +10,1 @@
3939
- say
@@ -97,8 +97,8 @@ exports[`collapses diffs and strips ansi by default 1`] = `
9797

9898
exports[`detects React components 1`] = `
9999
"Snapshot Diff:
100-
- <Component namedJestMock={[MockFunction test-mock-name]} test=\\"say\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
101-
+ <Component namedJestMock={[MockFunction test-mock-name]} test=\\"my name\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
100+
- <Component namedJestMock={[MockFunction test-mock-name]} test="say" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
101+
+ <Component namedJestMock={[MockFunction test-mock-name]} test="my name" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
102102
103103
@@ -5,14 +5,14 @@
104104
<span
@@ -144,7 +144,7 @@ exports[`diffs short strings 1`] = `
144144
`;
145145

146146
exports[`failed optional deps throws with sensible message on missing react-test-renderer 1`] = `
147-
"Failed to load optional module \\"react-test-renderer\\". If you need to compare React elements, please add \\"react-test-renderer\\" to your project's dependencies.
147+
"Failed to load optional module "react-test-renderer". If you need to compare React elements, please add "react-test-renderer" to your project's dependencies.
148148
Cannot find module 'non-existent-module-for-testing' from '__tests__/snapshotDiff.test.js'"
149149
`;
150150

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
},
1717
"repository": "https://github.com./thymikee/snapshot-diff",
1818
"engines": {
19-
"node": ">=12"
19+
"node": ">=14"
2020
},
2121
"peerDependencies": {
2222
"jest": ">=16"
2323
},
2424
"dependencies": {
25-
"jest-diff": "^28.1.3",
26-
"jest-snapshot": "^28.1.3",
27-
"pretty-format": "^28.1.3"
25+
"jest-diff": "^29.0.0",
26+
"jest-snapshot": "^29.0.0",
27+
"pretty-format": "^29.0.0"
2828
},
2929
"devDependencies": {
3030
"@babel/cli": "^7.7.0",
@@ -38,7 +38,7 @@
3838
"enzyme-to-json": "^3.4.0",
3939
"eslint": "^7.0.0",
4040
"flow-bin": "^0.129.0",
41-
"jest": "^28.1.3",
41+
"jest": "^29.0.0",
4242
"react": "^16.13.1",
4343
"react-dom": "16.14.0",
4444
"react-test-renderer": "^16.13.1"

0 commit comments

Comments
 (0)