From eb293d5a5ab58978947a21cc3f19ef96b02f1afc Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 16 Oct 2024 16:55:08 -0700 Subject: [PATCH] fix child-process-windows-hide.test.js running in ci --- test/js/node/test/parallel/child-process-windows-hide.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/js/node/test/parallel/child-process-windows-hide.test.js b/test/js/node/test/parallel/child-process-windows-hide.test.js index 45aa9f7ac671d..45e1924a88ae2 100644 --- a/test/js/node/test/parallel/child-process-windows-hide.test.js +++ b/test/js/node/test/parallel/child-process-windows-hide.test.js @@ -6,7 +6,8 @@ const cp = require("child_process"); const cmd = process.execPath; const args = ["--print", "42"]; -const options = { windowsHide: true }; +const options = { windowsHide: true, env: { ...Bun.env } }; +delete options.env.FORCE_COLOR; // Since windowsHide isn't really observable, we'll use Jest's mocking capabilities // to verify that the flag is being passed through correctly.