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 there any way to capture arguments passed to a method on a mocked object.
For example, if we have:
export abstract class StatusDao { abstract getWhere(codes: string[]): Promise<Status> }
and then:
const statusDao: MockProxy<StatusDao> = mock<StatusDao>()
would there any way to capture any arguments passed to getWhere ?
getWhere
I know I can use expect(statusDao.getWhere).toHaveBeenCalledWith() but this doesn't always quite do what i want
expect(statusDao.getWhere).toHaveBeenCalledWith()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
Is there any way to capture arguments passed to a method on a mocked object.
For example, if we have:
and then:
const statusDao: MockProxy<StatusDao> = mock<StatusDao>()
would there any way to capture any arguments passed to
getWhere
?I know I can use
expect(statusDao.getWhere).toHaveBeenCalledWith()
but this doesn't always quite do what i wantThe text was updated successfully, but these errors were encountered: