import { createMock } from 'ts-auto-mock' ; import '../config' ; import { Interface } from '../interface' ; describe ( 'reuse' , ( ) => { it ( 'should use the correct mock' , ( ) => { const mock = createMock < Interface > ( ) ; mock . b ( ) ; expect ( mock . b ) . toHaveBeenCalled ( ) ; expect ( mock . a ) . not . toHaveBeenCalled ( ) ; } ) ; } ) ;