Created
March 24, 2021 16:11
-
-
Save csouchet/f581b3bdc718f66759265b6a0be737fe to your computer and use it in GitHub Desktop.
Extend the Jest expect assertion mechanism
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
import { toMatchImageSnapshot } from 'jest-image-snapshot'; | |
expect.extend({ toMatchImageSnapshot }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment