Skip to content

Commit

Permalink
test: mock additional hasColors method introduced in Node 16 (#2297)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Feb 13, 2023
1 parent f37ee6f commit 7dc1086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/fixtures/issue-497.js
Expand Up @@ -5,6 +5,7 @@
// pretend we are a TTY
process.stdout.isTTY = true;
process.stderr.isTTY = true;
process.stderr.hasColors = () => true;

const yargs = require('../../');
const y = yargs
Expand Down

0 comments on commit 7dc1086

Please sign in to comment.