import { getAllMocks , getMockState } from '../mock/map' ; import { Mock } from '../mock/mock' ; example export const reset = ( mock ) : void => { getMockState ( mock ) . repository . clear ( ) ; } ; see reset export const resetAll = ( ) : void => { getAllMocks ( ) . forEach ( ( [ mock ] ) => { reset ( mock ) ; } ) ; } ;