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

Fix jest regression in expect.objectContaining for observable variables #5569

Closed
wants to merge 1 commit into from

Conversation

danrot
Copy link
Contributor

@danrot danrot commented Oct 27, 2020

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets ---
Related issues/PRs jestjs/jest#10508
License MIT
Documentation PR ---

What's in this PR?

This PR avoids the usage of expect.objectContaining in some cases.

Why?

Because jestjs/jest#10508 introduced a regression. As soon as expect.objectContaining is called, it seems like variables passed to it are sometimes changed. For that reason the interceptor on the excludeGhostsAndShadows variables was changed, so the intercept call stopped working.

@danrot
Copy link
Contributor Author

danrot commented Oct 27, 2020

Will probably be fixed by jestjs/jest#10689, which will probably released today... So maybe we don't need to merge that.

@niklasnatter
Copy link
Contributor

Think I would wait for the fix 🙂

This was referenced Oct 27, 2020
@niklasnatter niklasnatter changed the base branch from master to release/2.2 October 29, 2020 13:46
@danrot
Copy link
Contributor Author

danrot commented Oct 30, 2020

Closing this, since we are waiting for the release. Hopefully they release it soon...

@danrot danrot closed this Oct 30, 2020
@danrot danrot deleted the bugfix/jest-regression branch October 30, 2020 10:11
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 this pull request may close these issues.

None yet

2 participants