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.
This commit is contained in:
Dallin Romney 2026-03-26 12:07:47 -07:00 • committed by GitHub
parent d1d4ecb7b9
commit e8d2c4e139
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<ToIdeProtocol, FromIdeProtocol>
).close();
} else {
} else if (subprocess) {
subprocess.kill();
await new Promise((resolve) => subprocess.on("close", resolve));
await new Promise((resolve) => setTimeout(resolve, 1000));