Created
September 27, 2017 11:38
-
-
Save jmacqueen/002089fe2b358fe6540fc19ad13daf61 to your computer and use it in GitHub Desktop.
How to mock components from ui-lib
This file contains hidden or 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('@echo360/ui-lib', () => { | |
const module = jest.genMockFromModule('@echo360/ui-lib') | |
module.Button = 'Button' | |
module.SelectSingle = 'SelectSingle' | |
module.TextInput = 'TextInput' | |
return module | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment