Skip to content

Commit fa344ef

Browse files
committed
test: detected BUG in Node hasColors under Windows + Node 24 - NO_COLOR="" return true instead false
1 parent 29c1412 commit fa344ef

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎test/cases/color-support/cli-flags-env-vars.test.js‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,11 @@ describe('Node: hasColors()', () => {
107107
// Original no-color.org rule: an empty value should not disable colors.
108108
// Node: disables colors.
109109
// Ansis: empty string has no effect.
110-
test(`NO_COLOR: ''`, () => {
111-
const received = WriteStream.prototype.hasColors.call(process.stdout, 16, { NO_COLOR: '' });
112-
expect(received).toEqual(false);
113-
});
110+
// Bug in Windows + Node 24: returns true for this combination (other Node versions works correct), instead expected false.
111+
// test(`NO_COLOR: ''`, () => {
112+
// const received = WriteStream.prototype.hasColors.call(process.stdout, 16, { NO_COLOR: '' });
113+
// expect(received).toEqual(false);
114+
// });
114115

115116
// Original force-color.org example: FORCE_COLOR overrides NO_COLOR when active.
116117
// Node: enables colors.

0 commit comments

Comments
 (0)