From 229cca86306df21c727aa240c9ba707027f791ef Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Wed, 22 Jul 2026 14:16:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8DVitest=E5=A2=9E?= =?UTF-8?q?=E9=87=8F=E6=B5=8B=E8=AF=95--related=E5=8F=82=E6=95=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E5=BA=94=E6=98=AFrelated=E5=AD=90=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ci/vitest_incremental.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/vitest_incremental.sh b/scripts/ci/vitest_incremental.sh index d367a07f4..a91500730 100644 --- a/scripts/ci/vitest_incremental.sh +++ b/scripts/ci/vitest_incremental.sh @@ -55,14 +55,14 @@ if [ "$FILE_COUNT" -gt 30 ]; then exit $? fi -# 使用vitest --related 跑增量测试 +# 使用vitest related 跑增量测试(子命令,非flag) echo "" echo "=== 增量执行 Vitest(只跑相关测试)===" echo "相关源文件: $CHANGED_FILES" echo "" set +e -npx --no-install vitest run --related $CHANGED_FILES +npx --no-install vitest run related $CHANGED_FILES VITEST_EXIT=$? set -e -- 2.54.0