Mock lazyInject objects in typescript(Inversify) using Jest JS
I used @lazyInject for inject the dependencies to some service classes.
let container = new Container();
container.bind(TYPES.StudentService).to(StudentServiceImpl);
let {lazyInject} = getDecorators(container);
@Service(TYPES.CoreService)
export class CoreServiceImpl implements CoreService {
@lazyInject(TYPES.StudentService)
private studentService: StudentServiceImpl;
}
How can I mock this lazyInject object using Jest JS. Any help or workarounds are really appreciate.