import { mount } from 'enzyme' ; import React from 'react' ; import { withReduxAndStyledProviders } from '../../test/testUtils' ; import Likes from './Likes' ; returns { JSX . Element } const setup = ( ) => { return mount ( withReduxAndStyledProviders ( < Likes />)); } ; describe ( 'Likes' , ( ) => { const wrap = setup ( ) ; it ( 'should render without throwing an error' , ( ) => { expect ( wrap ) ; expect ( wrap . length ) . toBe ( 1 ) ; } ) ; } ) ;