Skip to content

Commit f3f7469

Browse files
committed
Replace jest-serializer-ansi with jest-snapshot-serializer-ansi
Two snapshot tests were failing locally, but not on CI, when using the previous library. I'm not quite sure why tests were not failing on CI as the bug comes from these extra double quotes: https://github.com/joaogranado/jest-serializer-ansi/blob/c8c5e8cbc0f804f9fe195dfd27625ea0b3d2a062/index.js#L13-L16
1 parent d0072b8 commit f3f7469

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"@testing-library/jest-dom": "^5.11.6",
5353
"@types/lz-string": "^1.3.34",
5454
"jest-in-case": "^1.0.2",
55-
"jest-serializer-ansi": "^1.0.3",
5655
"jest-snapshot-serializer-ansi": "^1.0.0",
5756
"jest-watch-select-projects": "^2.0.0",
5857
"jsdom": "^16.4.0",

tests/setup-env.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@testing-library/jest-dom/extend-expect'
2-
import jestSerializerAnsi from 'jest-serializer-ansi'
2+
import jestSnapshotSerializerAnsi from 'jest-snapshot-serializer-ansi'
33

4-
expect.addSnapshotSerializer(jestSerializerAnsi)
4+
expect.addSnapshotSerializer(jestSnapshotSerializerAnsi)
55
// add serializer for MutationRecord
66
expect.addSnapshotSerializer({
77
print: (record, serialize) => {

0 commit comments

Comments
 (0)