Skip to content

Commit

Permalink
Ensure inline snapshots can be updated in tests with using syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Dec 9, 2024
1 parent bf202fe commit ff6f2d9
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 27 deletions.
2 changes: 0 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const customJestConfig = {
moduleNameMapper: {
'@next/font/(.*)': '@next/font/$1',
},
// Re-add support for inline snapshots using prettier v2:
prettierPath: require.resolve('prettier-2'),
}

// Check if the environment variable is set to enable test report,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@
"postcss-short-size": "4.0.0",
"postcss-trolling": "0.1.7",
"prettier": "3.2.5",
"prettier-2": "npm:prettier@^2",
"pretty-bytes": "5.3.0",
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
Expand Down Expand Up @@ -268,6 +267,7 @@
"@babel/traverse": "7.22.5",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
"jest-snapshot": "30.0.0-alpha.6",
"react": "19.0.0-rc-7283a213-20241206",
"react-dom": "19.0.0-rc-7283a213-20241206",
"react-is": "19.0.0-rc-7283a213-20241206",
Expand Down
Loading

0 comments on commit ff6f2d9

Please sign in to comment.