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
Sample code:
const { when } = require('jest-when') it('allows defining the default when NOT chaining', () => { const fn = jest.fn() when(fn).mockRejectedValue(false) when(fn) .calledWith(expect.anything()) .mockResolvedValue(true) expect(fn()).rejects.toEqual(false) });
Expectation: The test case to pass
The text was updated successfully, but these errors were encountered:
bf5e3f2
Merge pull request #58 from devzeebo/master
bc87ce5
Fix non-chained default implementations (fixes #57)
No branches or pull requests
Sample code:
Expectation: The test case to pass
The text was updated successfully, but these errors were encountered: