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

--list-different: error out there are differences #78

Merged
merged 2 commits into from Jun 14, 2017

Conversation

moretti
Copy link
Contributor

@moretti moretti commented Jun 13, 2017

Fixes #77

@codecov-io
Copy link

codecov-io commented Jun 13, 2017

Codecov Report

Merging #78 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #78   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           3      3           
  Lines         104    105    +1     
=====================================
+ Hits          104    105    +1
Impacted Files Coverage Δ
src/format-files.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b116bec...dcd9ee8. Read the comment docs.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Just one comment.

@@ -11,6 +11,7 @@ jest.mock('fs')

beforeEach(() => {
process.stdout.write = jest.fn()
process.exitCode = 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put this in an afterEach to avoid the process running this test from having an exit code of non-0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! Done.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@kentcdodds
Copy link
Member

Thank you!

@kentcdodds kentcdodds merged commit 7db596b into prettier:master Jun 14, 2017
@moretti moretti deleted the list-different-exit-code branch June 14, 2017 15:37
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

3 participants