import React from 'react' ; import { render } from './reactTestingLibrary' ; const Foo = ( ) => null ; describe ( 'reactTestingLibrary' , ( ) => { describe ( 'render' , ( ) => { it ( 'returns getByText method' , ( ) => { const { getByText } = render ( < Foo />); expect ( getByText ) . toBeDefined ( ) ; } ) ; } ) ; } ) ;