Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import { shallow, mount, render } from 'enzyme'
- it('outputs the <App />', () =>{
- const wrapperShallow = shallow(<App />)
- const wrapperMount = mount(<App />)
- const wrapperRender = render(<App />)
- console.log('Shallow')
- console.log(wrapperShallow.debug())
- console.log('Mount')
- console.log(wrapperMount.debug())
- console.log('Render')
- console.log(wrapperRender.html())
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement