fix(run): preserve pnpm test selection arguments (#2092)

Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-08 16:14:54 +08:00
1 джерело 11911a12c6
коміт 86ed4d6c59
6 files changed
+53 -12

No files matched your search

+7
Переглянути файл
@@ -0,0 +1,7 @@
import { commandName } from "./commandName";
/** pnpm forwards `--` to the script, where it ends the test runner's option parsing. */
export function appendScriptArgs(command: string, args: string[], extra: string[]): string[] {
const separator = !args.includes("--") && ["npm", "yarn", "bun"].includes(commandName(command)) ? ["--"] : [];
return [...args, ...separator, ...extra];
}