-
-
Notifications
You must be signed in to change notification settings - Fork 85
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 broken cli tests #57
Fix broken cli tests #57
Conversation
@@ -49,7 +53,7 @@ module.exports = { | |||
}, | |||
validate: { | |||
description: 'This runs several scripts to make sure things look good before committing or on clean install', | |||
script: concurrent.nps('lint', 'build', 'test'), | |||
script: concurrent.nps('lint', 'build', 'test', 'test.cli'), |
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.
Oh! Nice! I had no idea we weren't running those! 😅 thank you!
Hmmm... Looks like the tests don't pass on travis. |
055113f
to
f383198
Compare
Sorry I edited the first commit to make sure the prettier-eslint output isn't printing colors. But it seems it still doesn't work on travis... I'm on it. |
f383198
to
72ea572
Compare
In order to make sure the prettier-eslint command won't display colored output, we have to tweak the environment variables. We don't want colored output because it won't match jest snapshots.
In prettier#54 I removed the extra new line at the end of files printed to stdout. I wasn't aware of cli-tests, so I didn't change those. This commit adjust the expected output of files formated and printed to stdout.
Codecov Report
@@ Coverage Diff @@
## master #57 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 3 3
Lines 97 97
=====================================
Hits 97 97 Continue to review full report at Codecov.
|
Finally! I really hate |
Thank you very much! |
What: The CLI tests are failing since #54.
Why: #54 changes the output of files printed to stdout, but didn't change the expected output in the tests.
How: Fixed by adjusting the expected output + adding CLI tests to the CI.