Skip to content
New issue

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

toHaveReceivedAnyCommand() missing #3

Open
pappnase99 opened this issue Nov 27, 2024 · 2 comments
Open

toHaveReceivedAnyCommand() missing #3

pappnase99 opened this issue Nov 27, 2024 · 2 comments

Comments

@pappnase99
Copy link

The 'sister' lib 'aws-sdk-client-mock-jest' has a Matcher 'toHaveReceivedAnyCommand()' which can be really useful, especially in its negated form to make sure certain code branches are not executed at all. Is it possible to add this?

@johnny9144
Copy link

exactly! it will be good to have. Is there any alternative for workaround now?

@pappnase99
Copy link
Author

For the moment I'm using expect(mock.calls.length).toBe(0);. Not really elegant but does the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants