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

TypeError: this.customTesters is not iterable in expect.jsonContaining in jest 29.4.0 #9

Closed
justin-tay opened this issue Feb 13, 2023 · 1 comment · Fixed by #10
Closed

Comments

@justin-tay
Copy link
Contributor

After upgrading jest to 29.4.0. Using expect.jsonContaining triggers the following error TypeError: this.customTesters is not iterable.

I suspect this is likely due to changes from jestjs/jest#13654.

return toMatchJSON.call(expect.getState() as MatcherState, received, jsonObject)
I think that instead of using expect.getState() the this variable is expected to be passed through.

@debugmaster
Copy link
Owner

Thanks for your report @justin-tay. I will have a look later today.

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

Successfully merging a pull request may close this issue.

2 participants