Skip to content

tests(colors): Force-disable colors on tests for consistent snapshots #5646

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

Merged
merged 1 commit into from
Feb 23, 2018

Conversation

BYK
Copy link
Contributor

@BYK BYK commented Feb 23, 2018

Summary

We are having test failures due to mismatched snapshots on TravisCI
and on some other systems since colors are not consistently used
during tests. This patch forces colors to be off during tests via
runJest so they are always consistent.

Test plan

Existing tests should pass. TravisCI builds should also be fixed.

**Summary**

We are having test failures due to mismatched snapshots on TravisCI
and on some other systems since colors are not consistently used
during tests. This patch forces colors to be off during tests via
`runJest` so they are always consistent.

**Test plan**

Existing tests should pass. TravisCI builds should also be fixed.
@codecov-io
Copy link

Codecov Report

Merging #5646 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #5646   +/-   ##
=======================================
  Coverage   62.35%   62.35%           
=======================================
  Files         216      216           
  Lines        7908     7908           
  Branches        3        3           
=======================================
  Hits         4931     4931           
  Misses       2976     2976           
  Partials        1        1

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 c91ee66...a09955f. Read the comment docs.

@mjesun mjesun merged commit 64cbf36 into master Feb 23, 2018
@mjesun mjesun deleted the no-colored-tests branch February 23, 2018 18:03
BYK added a commit that referenced this pull request Feb 24, 2018
Summary

Follow up to #5646. Forces `chalk` to be turned on in matcher tests for
consistent snapshot output. Should fix tests on TravisCI.

Test plan

Existing tests should pass. TravisCI should pass.
BYK added a commit that referenced this pull request Feb 24, 2018
## Summary

Follow up to #5646. Forces `chalk` to be turned on in matcher tests for
consistent snapshot output. Should fix tests on TravisCI.

## Test plan

Existing tests should pass. TravisCI should pass.
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants