import { renderHook } from '@testing-library/react-hooks' ; jest . mock ( '../../../../../shared_imports' ) ; jest . mock ( '../../../../../app/app_dependencies' ) ; import { useActions } from './use_actions' ; describe ( 'Transform: Transform List Actions' , ( ) => { test ( 'useActions()' , async ( ) => { const { result , waitForNextUpdate } = renderHook ( ( ) => useActions ( { forceDisable : false , transformNodes : 1 } ) ) ; await waitForNextUpdate ( ) ; const actions = result . current . actions ; expect ( actions . map ( ( a ) => a [ 'data-test-subj' ] ) ) . toStrictEqual ( [ 'transformActionDiscover' , 'transformActionCreateAlertRule' , 'transformActionStart' , 'transformActionStop' , 'transformActionEdit' , 'transformActionClone' , 'transformActionDelete' , ] ) ; } ) ; } ) ;