Created
June 19, 2017 11:44
-
-
Save zouxuoz/3db2544505e92a6be675e7457e551bcb to your computer and use it in GitHub Desktop.
Replace `.toEqual` -> `'.toMatchSnapshot` for Jest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
grasp -e 'expect($args).toEqual(_obj)' -R 'expect({{args}}).toMatchSnapshot()' -i $(find **/__tests__/**.js) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment