format import React from 'react' ; import { EmptyListView } from '@components' ; import renderer from 'react-test-renderer' ; it ( 'renders correctly' , ( ) => { const instance = renderer . create ( < EmptyListView />); expect ( instance . toJSON ( ) ) . toMatchSnapshot ( ) ; } ) ;