From 89817e7ec247cd908c44c3f39d26225d1e4eb6b8 Mon Sep 17 00:00:00 2001 From: sunlei Date: Fri, 5 Jun 2026 19:49:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Jenkins=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=8F=82=E6=95=B0=E9=80=8F=E4=BC=A0?= 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 5d97e23..37be57b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -208,8 +208,8 @@ pipeline { stage('Test') { steps { script { - // 当前单测配置查找 src/**/*.spec.ts,允许空测试集,后续补齐 spec 后仍会正常执行。 - runCmd('pnpm test --passWithNoTests') + // 当前单测配置查找 test/**/*.spec.ts,Jest 参数需要通过 pnpm run 的 -- 透传。 + runCmd('pnpm run test -- --passWithNoTests') } } }