Skip to content

Commit 267ca09

Browse files
committed
fix(rstack): support latest Rstest CLI entry
1 parent 5734073 commit 267ca09

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

packages/rstack/src/cli/commands.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ async function runRstestCLI(args: string[]): Promise<void> {
5858
),
5959
];
6060

61-
const { runCLI } = await import('@rstest/core');
61+
type RunCLI = (options: { argv: string[] }) => void;
62+
const rstestCore = (await import('@rstest/core')) as unknown as {
63+
runCLI?: RunCLI;
64+
};
65+
const runCLI =
66+
rstestCore.runCLI ??
67+
((await import('@rstest/core/api')) as unknown as { runCLI: RunCLI })
68+
.runCLI;
6269
runCLI({ argv });
6370
}
6471

0 commit comments

Comments
 (0)