Skip to content

Commit

Permalink
test: Fix --updateSnapshot (#310)
Browse files Browse the repository at this point in the history
* test: Fix --updateSnapshot

* fixup! test: Fix --updateSnapshot
  • Loading branch information
eps1lon authored Dec 2, 2023
1 parent 0730d90 commit 9540273
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ const config = {
// A preset that is used as a base for Jest's configuration
// preset: undefined,

// TODO: Can be removed in Jest 30
// https://github.com/jestjs/jest/issues/14305
prettierPath: require.resolve("prettier-v2"),

// Run tests from one or more projects
// projects: undefined,

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"eslint": "^8.12.0",
"jest": "^29.0.0",
"prettier": "^3.0.0",
"prettier-v2": "npm:prettier@^2.8.8",
"typescript": "^5.0.0"
},
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6305,7 +6305,7 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:^2.7.1":
"prettier-v2@npm:prettier@^2.8.8, prettier@npm:^2.7.1":
version: 2.8.8
resolution: "prettier@npm:2.8.8"
bin:
Expand Down Expand Up @@ -7398,6 +7398,7 @@ __metadata:
jest: ^29.0.0
jscodeshift: ^0.15.0
prettier: ^3.0.0
prettier-v2: "npm:prettier@^2.8.8"
typescript: ^5.0.0
yargs: ^17.4.0
bin:
Expand Down

0 comments on commit 9540273

Please sign in to comment.