Created
March 24, 2021 09:11
-
-
Save icodejs/ac051c12202dba858e5d81faa4f19b39 to your computer and use it in GitHub Desktop.
Mocking React Components 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("../src/Icon", () => { | |
return { | |
__esModule: true, | |
namedExport: true, | |
default: () => { | |
return <div></div>; | |
}, | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment