-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
test: Reduce default Jest log verbosity #53129
Conversation
The current approach of enabling the `verbose` option for all test scripts is counter to the Jest default and the Gutenberg web editor preset. This better aligns the native tests with the web tests. The `verbose` option remains enabled for "debug" scripts and can be enabled ad-hoc via the `--verbose` flag.
Size Change: -401 B (0%) Total Size: 1.44 MB
ℹ️ View Unchanged
|
I would be in favor of this change. 👍 |
I noticed we enable the verbose mode in other cases not covered in this PR. I'm wondering if we could also disable it on them. WDYT?
|
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.
LGTM 🎊 !
Good point. I addressed this in 129929c and wordpress-mobile/gutenberg-mobile#6012. |
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.
Good point. I addressed this in 129929c and wordpress-mobile/gutenberg-mobile#6012.
Great, thanks!
Related PRs
What?
Disable the Jest
verbose
option for native tests.Why?
The current approach of enabling the
verbose
option for all testscripts diverges from the Jest default and the Gutenberg web editor
preset. This better aligns the native tests with the web tests.
The non-verbose output is helpful for comprehending results when
running many tests at once.
The
verbose
option remains enabled for "debug" scripts and canbe enabled ad-hoc via the
--verbose
flag. Additionally, theverbose output remains the default output when running a single
test file.
How?
Remove the
--versbose
flag andverbose: false
option for all native testscripts aside from the debug variants, which would benefit from additional
information while debugging.
Testing Instructions
n/a
Testing Instructions for Keyboard
n/a
Screenshots or screencast