From 75ddbea5859c6a0a75f083e4d736662e8daec4c5 Mon Sep 17 00:00:00 2001 From: sunlei Date: Fri, 5 Jun 2026 19:53:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=9B=B4=E6=8E=A5=E6=89=A7=E8=A1=8C=20J?= =?UTF-8?q?enkins=20Jest=20=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 37be57b..a80b371 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -208,8 +208,8 @@ pipeline { stage('Test') { steps { script { - // 当前单测配置查找 test/**/*.spec.ts,Jest 参数需要通过 pnpm run 的 -- 透传。 - runCmd('pnpm run test -- --passWithNoTests') + // 直接执行 Jest,避免不同 pnpm 版本把 --passWithNoTests 当成测试匹配模式。 + runCmd('pnpm exec jest --passWithNoTests') } } }