import React from 'react' ; import ReactDOM from 'react-dom' ; import ShallowRenderer from 'react-test-renderer/shallow' ; import { FallbackTest } from '../FallbackTest' ; test ( 'renders contents of FallbackTest Component' , ( ) => { const container = document . createElement ( 'div' ) ; ReactDOM . render ( < FallbackTest />, container); expect ( container . textContent ) . toBeTruthy ( ) ; } ) ;