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
export class MyClass { foo = { bar: () => { return 'foo.bar'; }, }; } test('foo.bar', () => { const myMock = createMock<MyClass>(); myMock.foo.bar.mockResolvedValue('foo.bar'); });
Based off the createMock source this nested object should also be a mock. Updating the typings as suggested in #884 fixes this error
createMock
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Based off the
createMock
source this nested object should also be a mock. Updating the typings as suggested in #884 fixes this errorThe text was updated successfully, but these errors were encountered: