Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gimenete/github-jest-snapshots
See Jest Snapshots in your commits
https://github.com/gimenete/github-jest-snapshots
Last synced: 16 days ago
JSON representation
See Jest Snapshots in your commits
- Host: GitHub
- URL: https://github.com/gimenete/github-jest-snapshots
- Owner: gimenete
- License: mit
- Created: 2019-01-31T19:15:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T00:45:22.000Z (over 4 years ago)
- Last Synced: 2024-10-03T12:39:23.233Z (about 1 month ago)
- Language: JavaScript
- Size: 270 KB
- Stars: 33
- Watchers: 6
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Jest Snapshots
GitHub action that shows Jest Snapshots in the GitHub interface. Run it on every `push` event and it will add annotations to your commits whenever there's a `toMatchSnapshot()` call in your code.
![](screenshots/annotation.png)
**Requirements**
Your project should make use of Jest or it will fail.
**Limitations**
- If you use `toMatchSnapshot()` in nested callbacks, this action will probably not match the snapshot correctly
- Right now GitHub only shows annotations in modified lines of code. So it's most useful when the line that contains `toMatchSnapshot()` has actually changed