import React , { ReactNode } from 'react' ; import { render } from '@toptal/picasso/test-utils' ; import AlertInline from './AlertInline' ; const renderAlertInline = ( children ) => render ( < AlertInline > { children } < /AlertInline>); describe ( 'Alert' , ( ) => { it ( 'renders' , ( ) => { const { container } = renderAlertInline ( 'test example string' ) ; expect ( container ) . toMatchSnapshot ( ) ; } ) ; } ) ;