-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add an option to quiet the informational messages. #191
Conversation
Codecov Report
@@ Coverage Diff @@
## master #191 +/- ##
=========================================
+ Coverage 96.77% 96.8% +0.03%
=========================================
Files 28 28
Lines 744 751 +7
=========================================
+ Hits 720 727 +7
Misses 24 24
Continue to review full report at Codecov.
|
@darrinholst, could you post a screenshot of an example? It would be cool to compare with #97 :) |
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.
Very cool!
test/integration/cli/quiet.test.js
Outdated
it('does not show info messages', function (done) { | ||
exec(`node ${binPath} --quiet "${test}"`, (err, stdout) => { | ||
assert.isNull(err); | ||
assert.notInclude(stdout, 'WEBPACK'); |
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.
Maybe add an assert.include(stdout, 'passing');
or something like this to ensure output is not completely empty and contains the expected output?
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.
✅
Makes sense. Thank you for this! |
The new messages from #97 can be a little distracting when you're used to just the output from mocha. This just adds a
--quiet
option to stop showing those messages and return to the output behavior pre 1.0.I'm open to other implementations...would just like the option to opt out of them.