import { createMock , registerMock } from 'ts-auto-mock' ; describe ( 'register-mock' , ( ) => { it ( 'should override standard behaviour of mock creation' , ( ) => { interface APropInterface { internalProp : string ; } interface AParentInterface { prop : APropInterface ; } registerMock < APropInterface > ( ( ) => ( { internalProp : 'whaaat' } ) ) ; const mock = createMock < AParentInterface > ( ) ; expect ( mock . prop . internalProp ) . toBe ( 'whaaat' ) ; } ) ; } ) ;