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