Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import React from 'react'
  2. import { shallow, mount, render } from 'enzyme'
  3.  
  4. it('outputs the <App />', () =>{
  5. const wrapperShallow = shallow(<App />)
  6. const wrapperMount = mount(<App />)
  7. const wrapperRender = render(<App />)
  8. console.log('Shallow')
  9. console.log(wrapperShallow.debug())
  10. console.log('Mount')
  11. console.log(wrapperMount.debug())
  12. console.log('Render')
  13. console.log(wrapperRender.html())
  14. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement