Skip to content

Commit 7f5ece4

Browse files
authored
fix: compat NO_COLOR env (#509)
1 parent f9955bb commit 7f5ece4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/pool/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const createPool = async ({
194194
env: {
195195
NODE_ENV: 'test',
196196
// enable diff color by default
197-
FORCE_COLOR: '1',
197+
FORCE_COLOR: process.env.NO_COLOR === '1' ? '0' : '1',
198198
...process.env,
199199
},
200200
});

0 commit comments

Comments
 (0)