Skip to content

chore(deps): update jest monorepo to v29 (major) #393

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 3 commits into from
Aug 29, 2022
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
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
Expand Down
20 changes: 10 additions & 10 deletions __tests__/__snapshots__/setSerializers.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

exports[`default rendered components can use contextLines 1`] = `
"Snapshot Diff:
- <NestedComponent test=\\"say\\" />
+ <NestedComponent test=\\"my name\\" />
- <NestedComponent test="say" />
+ <NestedComponent test="my name" />

@@ -4,1 +4,1 @@
- say
Expand All @@ -12,8 +12,8 @@ exports[`default rendered components can use contextLines 1`] = `

exports[`default rendered components diffs components 1`] = `
"Snapshot Diff:
- <NestedComponent test=\\"say\\" />
+ <NestedComponent test=\\"my name\\" />
- <NestedComponent test="say" />
+ <NestedComponent test="my name" />

@@ -1,9 +1,9 @@
<div>
Expand Down Expand Up @@ -89,8 +89,8 @@ exports[`values which are not components can use contextLines 1`] = `
+ Second value

@@ -3,1 +3,1 @@
- \\"hello\\": \\"world\\",
+ \\"hello\\": \\"there\\","
- "hello": "world",
+ "hello": "there","
`;

exports[`values which are not components diffs objects 1`] = `
Expand All @@ -99,9 +99,9 @@ exports[`values which are not components diffs objects 1`] = `
+ Second value

Object {
\\"foo\\": \\"bar\\",
- \\"hello\\": \\"world\\",
+ \\"hello\\": \\"there\\",
\\"testing\\": 123,
"foo": "bar",
- "hello": "world",
+ "hello": "there",
"testing": 123,
}"
`;
10 changes: 5 additions & 5 deletions __tests__/__snapshots__/snapshotDiff.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ exports[`can use contextLines on diff 1`] = `

exports[`can use contextLines with React components 1`] = `
"Snapshot Diff:
- <Component namedJestMock={[MockFunction test-mock-name]} test=\\"say\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
+ <Component namedJestMock={[MockFunction test-mock-name]} test=\\"my name\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
- <Component namedJestMock={[MockFunction test-mock-name]} test="say" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
+ <Component namedJestMock={[MockFunction test-mock-name]} test="my name" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />

@@ -10,1 +10,1 @@
- say
Expand Down Expand Up @@ -97,8 +97,8 @@ exports[`collapses diffs and strips ansi by default 1`] = `

exports[`detects React components 1`] = `
"Snapshot Diff:
- <Component namedJestMock={[MockFunction test-mock-name]} test=\\"say\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
+ <Component namedJestMock={[MockFunction test-mock-name]} test=\\"my name\\" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
- <Component namedJestMock={[MockFunction test-mock-name]} test="say" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />
+ <Component namedJestMock={[MockFunction test-mock-name]} test="my name" unnamedFunction={[Function unnamedFunction]} unnamedJestMock={[MockFunction]} />

@@ -5,14 +5,14 @@
<span
Expand Down Expand Up @@ -144,7 +144,7 @@ exports[`diffs short strings 1`] = `
`;

exports[`failed optional deps throws with sensible message on missing react-test-renderer 1`] = `
"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.
"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.
Cannot find module 'non-existent-module-for-testing' from '__tests__/snapshotDiff.test.js'"
`;

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
},
"repository": "https://github.com/thymikee/snapshot-diff",
"engines": {
"node": ">=12"
"node": ">=14"
},
"peerDependencies": {
"jest": ">=16"
},
"dependencies": {
"jest-diff": "^28.1.3",
"jest-snapshot": "^28.1.3",
"pretty-format": "^28.1.3"
"jest-diff": "^29.0.0",
"jest-snapshot": "^29.0.0",
"pretty-format": "^29.0.0"
},
"devDependencies": {
"@babel/cli": "^7.7.0",
Expand All @@ -38,7 +38,7 @@
"enzyme-to-json": "^3.4.0",
"eslint": "^7.0.0",
"flow-bin": "^0.129.0",
"jest": "^28.1.3",
"jest": "^29.0.0",
"react": "^16.13.1",
"react-dom": "16.14.0",
"react-test-renderer": "^16.13.1"
Expand Down
Loading