You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+1 Would like to be able to point to a property on my table row and use it for the test description. The only way I think I can do this is override toString and use %s
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue 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.
🚀 Feature Proposal
Provide a default set of plugins to jest-each's use of pretty-format.
Motivation
jest-snapshot provides a default set of plugins to pretty-format, which are used during formatting of
expect().toMatchSnapshot()
.jest-each also uses pretty-format to format programmatic test titles (added in #6357), but does not provide any plugins to pretty-format. So, for example, something like this doesn't work:
Because pretty-format isn't invoked with the
ReactElement
plugin.It would be nice if it was invoked with the same set of default plugins as in jest-snapshot.
Example
See above.
Pitch
Why does this feature belong in the Jest core platform?
For consistency between jest-snapshot and jest-each.
The text was updated successfully, but these errors were encountered: