1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <rouca@debian.org>
Date: Thu, 30 Oct 2025 11:34:45 +0100
Subject: Upgrade API for supports-color
forwarded: not-needed
---
packages/jest-worker/src/workers/ChildProcessWorker.ts | 3 ++-
supports-hyperlinks/index.js | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/packages/jest-worker/src/workers/ChildProcessWorker.ts b/packages/jest-worker/src/workers/ChildProcessWorker.ts
index 989086b..14ef06e 100644
--- a/packages/jest-worker/src/workers/ChildProcessWorker.ts
+++ b/packages/jest-worker/src/workers/ChildProcessWorker.ts
@@ -8,7 +8,8 @@
import {ChildProcess, ForkOptions, fork} from 'child_process';
import {totalmem} from 'os';
import mergeStream = require('merge-stream');
-import {stdout as stdoutSupportsColor} from 'supports-color';
+import supportsColor from 'supports-color';
+const stdoutSupportsColor = supportsColor.stdout;
import {
CHILD_MESSAGE_INITIALIZE,
CHILD_MESSAGE_MEM_USAGE,
diff --git a/supports-hyperlinks/index.js b/supports-hyperlinks/index.js
index 01b68c0..fda0997 100644
--- a/supports-hyperlinks/index.js
+++ b/supports-hyperlinks/index.js
@@ -58,7 +58,7 @@ function supportsHyperlink(stream) {
}
// If they specify no colors, they probably don't want hyperlinks.
- if (!supportsColor.supportsColor(stream)) {
+ if (!supportsColor.createSupportsColor(stream)) {
return false;
}
|