Skip to content

Commit 659f0d4

Browse files
committed
feat: add jest snapshot formatter to help normalize whitespace + generate better diffs in the console
1 parent ddd5db3 commit 659f0d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ module.exports = {
1212
],
1313
testEnvironment: 'node',
1414
globalSetup: './jest-global-setup.js',
15+
snapshotSerializers: ['jest-serializer-html'],
1516
// Notify not working correctly; we want to only get a notification when tests fail, and then get ONE success notificaiton after it passes
1617
// notify: true,
1718
// notifyMode: 'failure-success',

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"dependencies": {
5050
"sassdoc": "^2.5.0",
5151
"npm-run-all": "^4.1.5",
52-
"jest": "^23.5.0"
52+
"jest": "^23.6.0",
53+
"jest-serializer-html": "^5.0.0"
5354
},
5455
"devDependencies": {
5556
"editorconfig-checker": "^1.3.3",

0 commit comments

Comments
 (0)