We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! Is it possible to mock simple objects somehow based on interfaces where the value is not a function?
Instead
interface PartyProvider { getPartyType: () => string; getSongs: (type: string) => string[]; }
I'd like to mock
interface PartyProvider { getPartyType: string; getSongs: string[]; }
(and also being able to do that in nested form).
The text was updated successfully, but these errors were encountered:
Hi, @PEZO19. I would want to do the same. Any progress?
Sorry, something went wrong.
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";
No branches or pull requests
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).
The text was updated successfully, but these errors were encountered: