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

docs: Expand changelog entry for #5367 #5719

Merged
merged 1 commit into from
Mar 4, 2018
Merged

docs: Expand changelog entry for #5367 #5719

merged 1 commit into from
Mar 4, 2018

Conversation

eps1lon
Copy link
Contributor

@eps1lon eps1lon commented Mar 4, 2018

Summary

Changes from #5367 also affected toMatchObject. I added some test cases to proof that behavior and expanded the changelog entry.

Test plan

Future work

It is probably a good idea to show class instance properties when the objects did not match. Currently the diff only shows properties for which .hasOwnProperty is true.

https://github.com/facebook/jest/blob/74bf072e43789bf5bcfe85f2aa9492905c4d2e9a/packages/expect/src/utils.js#L93-L97

@codecov-io
Copy link

Codecov Report

Merging #5719 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5719   +/-   ##
=======================================
  Coverage   63.66%   63.66%           
=======================================
  Files         216      216           
  Lines        7921     7921           
  Branches        4        3    -1     
=======================================
  Hits         5043     5043           
  Misses       2877     2877           
  Partials        1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74bf072...945aa3a. Read the comment docs.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SimenB
Copy link
Member

SimenB commented Mar 4, 2018

@eps1lon mind opening up a separate issue (or even PR :D) for the future work you note? I agree that it seems like the right thing to do

@cpojer cpojer merged commit ecb5836 into jestjs:master Mar 4, 2018
@eps1lon
Copy link
Contributor Author

eps1lon commented Mar 5, 2018

@SimenB Will take a look at it,

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants