Skip to content

Instantly share code, notes, and snippets.

@Ranguro
Created February 12, 2019 18:28
Show Gist options
  • Save Ranguro/f318b60054f415fd2a418900c2562742 to your computer and use it in GitHub Desktop.
Save Ranguro/f318b60054f415fd2a418900c2562742 to your computer and use it in GitHub Desktop.
this passes
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
// eslint-disable-next-line
import DummyComponent from './dir-to-dummy-component/DummyComponent';
// eslint-disable-next-line
function shallow() {
const wrapper = shallow(<SeriesTabs />);
return { wrapper };
}
describe('<DummyComponent/> Component', () => {
it('Should compile', () => {
const { wrapper } = shallow();
expect(toJson(wrapper)).toMatchSnapshot();
console.log('Wrapper debug');
console.log(wrapper.debug());
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment