Skip to content

Instantly share code, notes, and snippets.

@jmacqueen
Created September 27, 2017 11:38
Show Gist options
  • Save jmacqueen/002089fe2b358fe6540fc19ad13daf61 to your computer and use it in GitHub Desktop.
Save jmacqueen/002089fe2b358fe6540fc19ad13daf61 to your computer and use it in GitHub Desktop.
How to mock components from ui-lib
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