Skip to content

Commit

Permalink
Move serializers to jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
askoufis committed May 4, 2023
1 parent b391e6a commit 17410f8
Show file tree
Hide file tree
Showing 10 changed files with 138 additions and 207 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
module.exports = {
preset: 'jest-puppeteer',
setupFilesAfterEnv: ['<rootDir>/test-utils/jestSetup.js'],
snapshotSerializers: [
'<rootDir>/test-utils/appSnapshotSerializer.js',
'<rootDir>/test-utils/htmlSnapshotSerializer.js',
'<rootDir>/test-utils/cssSnapshotSerializer.js',
],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/packages/sku/scripts/test.js',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"husky": "^8.0.3",
"jest": "^29.0.0",
"jest-environment-jsdom": "^29.0.0",
"jest-puppeteer": "^8.0.0",
"jest-puppeteer": "^8.0.6",
"jest-watch-typeahead": "^2.2.0",
"lint-staged": "^11.1.1",
"prettier": "^2.3.2",
Expand Down
150 changes: 41 additions & 109 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 17410f8

Please sign in to comment.