Skip to content

Commit

Permalink
Bump Jest to v29. jest.config.js has been updated in order to counter…
Browse files Browse the repository at this point in the history
…ract a breaking change introducing new default behaviour in snapshots, by adding new configuration that preserves the existing snapshot handling
  • Loading branch information
rhystmills committed Jan 21, 2025
1 parent 5d16ace commit 4f41929
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 1,221 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ module.exports = {
"<rootDir>/fileTransformer.js",
},
testEnvironment: "jest-environment-node",
snapshotFormat: {
escapeString: true,
printBasicPrototype: true,
},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@graphql-codegen/typescript": "^4.1.2",
"@guardian/node-riffraff-artifact": "0.3.2",
"@types/aws-lambda": "^8.10.114",
"@types/jest": "^28.1.1",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"@types/node-fetch": "^2.6.3",
"@types/prompts": "^2.0.14",
Expand All @@ -50,13 +50,13 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.21.5",
"husky": "^7.0.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-mock": "^29.7.0",
"lint-staged": ">=10",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.6",
"prompts": "^2.4.2",
"ts-jest": "^28.0.8",
"ts-jest": "^29.2.5",
"tsafe": "^1.0.1",
"typescript": "^5.7.3",
"wsrun": "^5.2.4"
Expand Down
Loading

0 comments on commit 4f41929

Please sign in to comment.