-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Fix: Log requireFail results in yellow on stdout instead of red on stderr (fixes #142) #151
Conversation
@phated I think this is good change. I'll review this. |
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.
I pointed out two places. Other than that, I'm fine.
test/exports-as-tasks.js
Outdated
@@ -21,11 +21,10 @@ describe('exports as tasks', function() { | |||
|
|||
function cb(err, stdout) { | |||
expect(err).toEqual(null); | |||
// Skipping stderr expectation because babel broke node 0.10 | |||
// expect(stderr).toEqual(''); |
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.
By this pr, stderr should become an empty string. Add its check code, please.
test/flags-require.js
Outdated
expect(err).toEqual(null); | ||
stderr = eraseLapse(eraseTime(stderr)); | ||
expect(stderr).toMatch('Failed to load external module ./null-module.js'); |
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.
By this pr, stderr should become an empty string. Add its check code, please.
2f9d7a3
to
91dbf38
Compare
@sttk updated! |
@phated Perfect! Thanks updating. |
I've merged. |
@sttk what do you think of this change? It seems like some tools interpret stderr wrong (like
husky
) and treat any output as a failure. This change is mostly a cosmetic one but it does change some tests.