jest . mock ( '../hooks' , ( ) => ( { useSearchContextActions : jest . fn ( ( ) => ( { } ) ) , useSearchContextState : jest . fn ( ( ) => ( { } ) ) , } ) ) ; import { useSearchContextState , useSearchContextActions } from '../hooks' ; export const setMockSearchContextState = ( values ) => { ( useSearchContextState as jest . Mock ) . mockImplementation ( ( ) => values ) ; } ; export const setMockSearchContextActions = ( actions ) => { ( useSearchContextActions as jest . Mock ) . mockImplementation ( ( ) => actions ) ; } ;