Open PEZO19 opened 3 years ago
Hi, @PEZO19. I would want to do the same. Any progress?
This is working for me, but can't make it work with Date props.
interface MyObj {
expiredAt: Date;
test: string;
}
const obj = mock<MyObj>();
obj.expiredtAt = mock<Date>(new Date()); // not working
obj.test = "mockString";
Hi! Is it possible to mock simple objects somehow based on interfaces where the value is not a function?
Instead
I'd like to mock
(and also being able to do that in nested form).