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

get trailing/pending mockOnce-mocks #219

Open
Xiphe opened this issue Nov 8, 2021 · 0 comments
Open

get trailing/pending mockOnce-mocks #219

Xiphe opened this issue Nov 8, 2021 · 0 comments

Comments

@Xiphe
Copy link

Xiphe commented Nov 8, 2021

When writing integration tests I would like the tests to fail when the implementation does not perform an API call I was expecting.

In some cases the implementation might continue to work even when not doing the API call (for example a tracking/analytics request).

Is there a way to

  1. expect that a fetch call has actually happened (other then using expect.assertions(number))
  2. see the amount of trailing/pending mockOnce-mocks ?

Thanks for the great library!

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

1 participant