Visitar URL original
test: mock additional hasColors method introduced in Node 16 (#2297) · yargs/yargs@7dc1086 · GitHub
Skip to content

Commit 7dc1086

Browse files
author
Benjamin E. Coe
authored
test: mock additional hasColors method introduced in Node 16 (#2297)
1 parent f37ee6f commit 7dc1086

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎test/fixtures/issue-497.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// pretend we are a TTY
66
process.stdout.isTTY = true;
77
process.stderr.isTTY = true;
8+
process.stderr.hasColors = () => true;
89

910
const yargs = require('../../');
1011
const y = yargs

0 commit comments

Comments
 (0)