-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[jest-each] Add primitive pretty printing #7694
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was quick 👍 LGTM, one nit :)
c3e498c
to
e7a5186
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Codecov Report
@@ Coverage Diff @@
## master #7694 +/- ##
==========================================
+ Coverage 68.27% 68.28% +0.01%
==========================================
Files 251 251
Lines 9667 9671 +4
Branches 5 5
==========================================
+ Hits 6600 6604 +4
Misses 3065 3065
Partials 2 2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor suggestions. Looks good. Thanks!
@@ -23,6 +24,13 @@ const RECEIVED_COLOR = chalk.red; | |||
const SUPPORTED_PLACEHOLDERS = /%[sdifjoOp%]/g; | |||
const PRETTY_PLACEHOLDER = '%p'; | |||
const INDEX_PLACEHOLDER = '%#'; | |||
const PRIMITIVES = new Set([ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocking at all, but we might consider moving this to jest-get-types
(e.g.: isPrimitiveType(getType(value))
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rubennorte yup good shout, I'll send another PR for this change so we can merge this PR in the meantime :)
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. |
Summary
Closes: #7689
Test plan