import React from 'react'; import renderer from 'react-test-renderer'; import Badge from '../badge'; describe('', () => { it('renders correctly', () => { const component = renderer.create(); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); }); });