From c1b67cb5b9ba35de7a2ee8d61659e14316d9b622 Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 10 Sep 2023 20:27:46 +1200 Subject: [PATCH] Work-around bug in Jest Co-authored-by: Wee Bit --- tests/fixtures/inspect.js | 2 ++ tests/fixtures/pm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/fixtures/inspect.js b/tests/fixtures/inspect.js index 46b99b06d..6ef39b047 100644 --- a/tests/fixtures/inspect.js +++ b/tests/fixtures/inspect.js @@ -2,6 +2,8 @@ const program = require('../../'); +process.env.FORCE_COLOR = 0; // work-around bug in Jest: https://github.com/jestjs/jest/issues/14391 + program .command('sub', 'install one or more packages') .parse(process.argv); diff --git a/tests/fixtures/pm b/tests/fixtures/pm index 40fbd396d..2890430e9 100755 --- a/tests/fixtures/pm +++ b/tests/fixtures/pm @@ -1,5 +1,7 @@ #!/usr/bin/env node +process.env.FORCE_COLOR = 0; // work-around bug in Jest: https://github.com/jestjs/jest/issues/14391 + var program = require('../../'); program