Skip to content

Commit 4f44fe4

Browse files
committed
chore(packages): Upgrade from pixelmatch 4.x to 5.x, and pngjs to 3.4
1 parent cd81fc5 commit 4f44fe4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Thanks `jest-image-snapshot`, that broken header would not have looked good in p
7575
npm i --save-dev jest-image-snapshot
7676
```
7777

78-
Please note that `Jest` `>=20 <=24` is a peerDependency. `jest-image-snapshot` will **not** work with anything below Jest 20.x.x
78+
Please note that `Jest` `>=20 <=25` is a peerDependency. `jest-image-snapshot` will **not** work with anything below Jest 20.x.x
7979

8080
### Invocation
8181

__tests__/integration.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ describe('toMatchImageSnapshot', () => {
168168
const biggerImageData = fs.readFileSync(fromStubs('TestImage150x150.png'));
169169

170170
it('fails for a different snapshot', () => {
171-
const expectedError = /^Expected image to match or be a close match to snapshot but was 86\.55000000000001% different from snapshot \(8655 differing pixels\)\./;
171+
const expectedError = /^Expected image to match or be a close match to snapshot but was 86\.45% different from snapshot \(8645 differing pixels\)\./;
172172
const customSnapshotIdentifier = getIdentifierIndicatingCleanupIsRequired();
173173

174174
// Write a new snapshot image

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"devDependencies": {
4747
"@commitlint/cli": "^8.3.5",
4848
"@commitlint/config-conventional": "^8.3.4",
49-
"amex-jest-preset": "^5.0.0",
49+
"amex-jest-preset": "^6.0.1",
5050
"eslint": "^6.8.0",
5151
"eslint-config-amex": "^7.0.0",
5252
"husky": "^4.2.1",
53-
"image-size": "^0.7.1",
53+
"image-size": "^0.8.3",
5454
"jest": "^25.1.0",
5555
"jest-snapshot": "^25.1.0",
5656
"lockfile-lint": "^4.0.0",
@@ -62,8 +62,8 @@
6262
"glur": "^1.1.2",
6363
"lodash": "^4.17.4",
6464
"mkdirp": "^0.5.1",
65-
"pixelmatch": "^4.0.2",
66-
"pngjs": "^3.3.3",
65+
"pixelmatch": "^5.1.0",
66+
"pngjs": "^3.4.0",
6767
"rimraf": "^2.6.2"
6868
},
6969
"peerDependencies": {

0 commit comments

Comments
 (0)