Skip to content
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

Merged
merged 1 commit into from
Jan 24, 2018

Conversation

phated
Copy link
Member

@phated phated commented Jan 23, 2018

@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.

@phated phated requested a review from sttk January 23, 2018 22:22
@sttk
Copy link
Contributor

sttk commented Jan 24, 2018

@phated I think this is good change. I'll review this.

Copy link
Contributor

@sttk sttk left a 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.

@@ -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('');
Copy link
Contributor

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.

expect(err).toEqual(null);
stderr = eraseLapse(eraseTime(stderr));
expect(stderr).toMatch('Failed to load external module ./null-module.js');
Copy link
Contributor

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.

@phated
Copy link
Member Author

phated commented Jan 24, 2018

@sttk updated!

@sttk
Copy link
Contributor

sttk commented Jan 24, 2018

@phated Perfect! Thanks updating.

@sttk sttk merged commit e9af812 into master Jan 24, 2018
@sttk
Copy link
Contributor

sttk commented Jan 24, 2018

I've merged.

@phated phated deleted the require-fail-warning branch April 20, 2019 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants