From e8d2c4e13954dfa9ac2832a54e8a0875945fa29c Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 26 Mar 2026 12:07:47 -0700 Subject: [PATCH] fix: update JetBrains binary test expected files (#11890) fix: update binary test to expect rg instead of esbuild The build produces a ripgrep (rg) binary, not esbuild. Also guard against subprocess being undefined in afterAll when beforeAll fails. --- binary/test/binary.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binary/test/binary.test.ts b/binary/test/binary.test.ts index 02a934500..56e2d9d5e 100644 --- a/binary/test/binary.test.ts +++ b/binary/test/binary.test.ts @@ -67,7 +67,7 @@ describe("Test Suite", () => { const binaryPath = path.join(binaryDir, `continue-binary${exe}`); const expectedItems = [ `continue-binary${exe}`, - `esbuild${exe}`, + `rg${exe}`, "index.node", "package.json", "build/Release/node_sqlite3.node", @@ -144,7 +144,7 @@ describe("Test Suite", () => { ( messenger as CoreBinaryTcpMessenger ).close(); - } else { + } else if (subprocess) { subprocess.kill(); await new Promise((resolve) => subprocess.on("close", resolve)); await new Promise((resolve) => setTimeout(resolve, 1000));