From 267ca09685f912bc7aba21d2c59ba8e55aa4034c Mon Sep 17 00:00:00 2001 From: sunyiteng Date: Fri, 4 Sep 2026 17:16:29 +0800 Subject: [PATCH] fix(rstack): support latest Rstest CLI entry --- packages/rstack/src/cli/commands.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/rstack/src/cli/commands.ts b/packages/rstack/src/cli/commands.ts index dfd795f..75df423 100644 --- a/packages/rstack/src/cli/commands.ts +++ b/packages/rstack/src/cli/commands.ts @@ -58,7 +58,14 @@ async function runRstestCLI(args: string[]): Promise { ), ]; - const { runCLI } = await import('@rstest/core'); + type RunCLI = (options: { argv: string[] }) => void; + const rstestCore = (await import('@rstest/core')) as unknown as { + runCLI?: RunCLI; + }; + const runCLI = + rstestCore.runCLI ?? + ((await import('@rstest/core/api')) as unknown as { runCLI: RunCLI }) + .runCLI; runCLI({ argv }); }