import React from 'react' ; import { render , RenderResult } from '@toptal/picasso/test-utils' ; import Page from './Page' ; const renderPage = ( children ) => { return render ( < Page > { children } < /Page>); } ; describe ( 'Page' , ( ) => { let api ; beforeEach ( ( ) => { api = renderPage ( < div > Test < /div>); } ) ; it ( 'renders' , ( ) => { const { container } = api ; expect ( container ) . toMatchSnapshot ( ) ; } ) ; } ) ;