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

improved failure message readability of failing ObjectContaining tests #15038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

colinacassidy
Copy link

Summary

Improves failure message readability of failing ObjectContaining tests by removing highlighting from irrelevant keys. Closes #14897

ex, changes error message from:

- Expected  - 2
+ Received  + 3

- ObjectContaining {
+ Object {
+   "a": 1,
    "b": 2,
-   "c": 2,
+   "c": 3,
  }

to:

- Expected  - 2
+ Received  + 2

- ObjectContaining {
+ Object {
    "a": 1,
    "b": 2,
-   "c": 2,
+   "c": 3,
  }

Test plan

Modify unit test for ObjectContaining to reflect this behavior shown above.

Copy link

linux-foundation-easycla bot commented Apr 25, 2024

CLA Signed

  • ✅login: colinacassidy / (4136568)

The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Apr 25, 2024

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 4136568
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/662a9ca450fe16000a52d590
😎 Deploy Preview https://deploy-preview-15038--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

[Bug]: Wrong diff for objectContaining
1 participant