Skip to content

Commit

Permalink
Merge pull request mapbox#25 in ONE/jest-image-snapshot from feature/…
Browse files Browse the repository at this point in the history
…add-link-to-blog-post to master

* commit '753c24cd7d6e4d387a62e25b2a46799aa44dfe2d':
  docs(readme): add link to tech blog post
  fix(package): support jest v23 (mapbox#81)
  • Loading branch information
anescobar1991 committed May 26, 2018
2 parents 1a20fa0 + 753c24c commit 5442daf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Jest matcher that performs image comparisons using [pixelmatch](https://github.c
npm i --save-dev jest-image-snapshot
```

Please note that `Jest` `>=20 <=22` is a peerDependency. `jest-image-snapshot` will **not** work with anything below Jest 20.x.x
Please note that `Jest` `>=20 <=23` is a peerDependency. `jest-image-snapshot` will **not** work with anything below Jest 20.x.x

## Usage:
1. Extend Jest's `expect`
Expand All @@ -29,7 +29,7 @@ Jest matcher that performs image comparisons using [pixelmatch](https://github.c
});
```

See [the examples](./examples/README.md) for more detailed usage
See [the examples](./examples/README.md) for more detailed usage or read about an example use case in the [American Express Technology Blog](https://americanexpress.io/smile-for-the-camera/)

### Optional configuration:

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"eslint": "^4.15.0",
"eslint-config-amex": "^7.0.0",
"is-png": "^1.1.0",
"jest": "^22.0.0",
"jest": "^23.0.0",
"mock-spawn": "^0.2.6"
},
"dependencies": {
Expand All @@ -59,6 +59,6 @@
"rimraf": "^2.6.2"
},
"peerDependencies": {
"jest": ">=20 <=22"
"jest": ">=20 <=23"
}
}

0 comments on commit 5442daf

Please sign in to comment.