From d7606060a406490d097afaff2bfae084b8d87486 Mon Sep 17 00:00:00 2001 From: zhaoxing <2558691827@qq.com> Date: Sun, 15 Nov 2026 16:58:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(test):=20=E4=BF=AE=E6=AD=A3=E5=A4=A7?= =?UTF-8?q?=E5=8E=85=E4=BB=B7=E6=A0=BC=E8=B7=AF=E7=94=B1=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=9A=84=20Windows=20=E8=B7=AF=E5=BE=84=E5=88=86=E9=9A=94?= =?UTF-8?q?=E7=AC=A6=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../worker-platform/work-order-hall-pricing-routing.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/services/worker-platform/work-order-hall-pricing-routing.test.ts b/apps/backend/src/services/worker-platform/work-order-hall-pricing-routing.test.ts index c1857f90..0737a123 100644 --- a/apps/backend/src/services/worker-platform/work-order-hall-pricing-routing.test.ts +++ b/apps/backend/src/services/worker-platform/work-order-hall-pricing-routing.test.ts @@ -47,12 +47,13 @@ test('所有直接写 open 的接单仓库调用都必须先物化大厅价格', source.lastIndexOf('\nfunction ', matchIndex), ) const before = source.slice(functionStart, matchIndex) + const relativePath = path.relative(BACKEND_SRC, file).split(path.sep).join('/') assert.match( before, /assertWorkOrderHallPriceReadyWithClient\s*\(/, - `${path.relative(BACKEND_SRC, file)} 存在未经大厅价格物化直接写 open 的路径`, + `${relativePath} 存在未经大厅价格物化直接写 open 的路径`, ) - directWrites.push(path.relative(BACKEND_SRC, file)) + directWrites.push(relativePath) } }