Skip to content

Instantly share code, notes, and snippets.

@mikecx
Created July 31, 2020 05:27
import { React, shallow } from 'testHelper';
const sharedSpecs = (component, props) => {
let wrapper;
beforeEach(() => {
const Component = component;
wrapper = shallow(<Component {...{ ...props }} />);
});
describe('Generic Behaviors', () => {
test('should exist', () => {
expect(wrapper).toBeDefined();
});
});
};
module.exports = sharedSpecs;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment