Skip to content

Commit

Permalink
Set env variable FORCE_COLOR.
Browse files Browse the repository at this point in the history
This ensures that chalk uses always color instead of detecting from the
environment.  I believe when travis-ci runs the test it chalk detects
that color is not support.
  • Loading branch information
coreyfarrell committed Dec 18, 2017
1 parent a710255 commit f77d530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/cliui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

require('chai').should()

// Force chalk to enable color, if it's disabled the test fails.
process.env['FORCE_COLOR'] = 1

var chalk = require('chalk')
var cliui = require('../')
var stripAnsi = require('strip-ansi')
Expand Down

0 comments on commit f77d530

Please sign in to comment.