Skip to content

Instantly share code, notes, and snippets.

@Lelith
Last active April 21, 2020 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lelith/0bf99666c5bff502c08f7156f9ca0af8 to your computer and use it in GitHub Desktop.
Save Lelith/0bf99666c5bff502c08f7156f9ca0af8 to your computer and use it in GitHub Desktop.
Test for CounterWrapper to demonstrate mount
/* src/components/Counter/test/CounterWrapperTest.js */
import React from 'react'
import CounterWrapper from '../CounterWrapper';
import { shallow } 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