From f88f2793c0f666a89cb238bfd96ec86e297535ea Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Sun, 8 Mar 2026 13:50:24 -0700 Subject: [PATCH] Fix test helper TS compatibility --- sdks/typescript/tests/helpers/docker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdks/typescript/tests/helpers/docker.ts b/sdks/typescript/tests/helpers/docker.ts index 7c610ba..71837cc 100644 --- a/sdks/typescript/tests/helpers/docker.ts +++ b/sdks/typescript/tests/helpers/docker.ts @@ -154,7 +154,8 @@ export async function startDockerSandboxAgent( encoding: "utf8", stdio: ["ignore", "pipe", "pipe"], }).trim(); - const hostPort = mapping.split(":").at(-1)?.trim(); + const mappingParts = mapping.split(":"); + const hostPort = mappingParts[mappingParts.length - 1]?.trim(); if (!hostPort) { throw new Error(`missing mapped host port in ${mapping}`); }