From 9c10257fe6c9b6346ab79aa935c8b0def9b35a4b Mon Sep 17 00:00:00 2001 From: gouki Date: Fri, 7 Aug 2026 23:24:00 +0000 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8Dnpm=20test?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=AF=BC=E8=87=B4CI=E4=B8=AD=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit test脚本末尾 'exit 0' 在CI调用 'npm test -- --runInBand' 时 变成 'exit 0 --runInBand' 报错退出码1,导致workflow在测试步骤 失败,后续上传步骤不执行。去掉多余的 exit 0。 --- mini/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini/package.json b/mini/package.json index b2990be..cd58200 100644 --- a/mini/package.json +++ b/mini/package.json @@ -4,7 +4,7 @@ "description": "祈福小助手 - 万年历微信小程序", "private": true, "scripts": { - "test": "echo \"No tests yet\" && exit 0", + "test": "echo \"No tests yet\"", "upload": "node ci/upload-ci.cjs", "preview": "node ci/preview-ci.cjs" },