Last active
May 22, 2022 12:29
-
-
Save lucaslago/ee112277d1c5eb1a64dca083c9ac1609 to your computer and use it in GitHub Desktop.
Jest snippets
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
// 1. Asserting on mocked class instance | |
const mockedSentryInstance = jest.mocked(Toucan).mock.instances[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment