format import React from 'react' ; import { Modal } from 'react-native' ; import { FullScreenLoadingIndicator , FullScreenLoadingIndicatorProps , } from '@components' ; import renderer from 'react-test-renderer' ; it ( 'test visible' , ( ) => { const props = { visible : true , } ; const instance = renderer . create ( < FullScreenLoadingIndicator { ... props } / > ) ; expect ( instance . root . findByType ( Modal ) . props ?. visible ) . toBeTruthy ( ) ; } ) ; it ( 'render correctly' , ( ) => { const props = { visible : true , } ; const instance = renderer . create ( < FullScreenLoadingIndicator { ... props } / > ) ; expect ( instance . toJSON ( ) ) . toMatchSnapshot ( ) ; } ) ;