File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const stream = require('stream');
13
13
require ( 'chalk' ) . enabled = true ;
14
14
require ( 'chalk' ) . supportsColor = true ;
15
15
require ( 'chalk' ) . styles . blue . open = '\u001b[34m' ;
16
+ require ( 'chalk' ) . styles . bold . close = '\u001b[22m' ;
16
17
17
18
test ( 'ConsoleReporter.step' , async ( ) => {
18
19
expect (
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ const tty = require('tty');
27
27
type Row = Array < string > ;
28
28
type InquirerResponses < K , T > = { [ key : K ] : Array < T > } ;
29
29
30
+ // fixes bold on windows
31
+ if ( process . platform === 'win32' && process . env . TERM && ! / ^ x t e r m / i. test ( process . env . TERM ) ) {
32
+ chalk . styles . bold . close += '\u001b[m' ;
33
+ }
34
+
30
35
export default class ConsoleReporter extends BaseReporter {
31
36
constructor ( opts : Object ) {
32
37
super ( opts ) ;
You can’t perform that action at this time.
0 commit comments