import { render } from '@testing-library/react' ; import React , { ReactNode } from 'react' ; import { MemoryRouter } from 'react-router-dom' ; import { ServiceAlertTrigger } from './' ; function Wrapper ( { children } ) { return < MemoryRouter > { children } < /MemoryRouter>; } describe ( 'ServiceAlertTrigger' , ( ) => { it ( 'renders' , ( ) => { expect ( ( ) => render ( < ServiceAlertTrigger defaults = { { } } fields = { [ null ] } setRuleParams = { ( ) => { } } setRuleProperty = { ( ) => { } } />, { wrapper : Wrapper , } ) ) . not . toThrowError ( ) ; } ) ; } ) ;