Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Test for CounterWrapper to demonstrate mount
/* src/components/Counter/test/CounterWrapperTest.js */
import React from 'react'
import CounterWrapper from '../CounterWrapper';
import { shallow, mount} from 'enzyme';
const counterWrapper = shallow(<CounterWrapper />);
console.log(counterWrapper.debug());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.