Created
February 14, 2022 17:17
-
-
Save asifsaho/439619cd01dfc47def7d5001a5e70d0f to your computer and use it in GitHub Desktop.
Mock React component with 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
jest.mock('./embed-code/embed-code', () => { | |
return { | |
__esModule: true, | |
default: () => { | |
return <div>Embed component goes here</div>; | |
}, | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment