From fc54a5934bc0730c39d29bb6dafd82053e4310b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Allen=20Zhang=20=28=E5=BC=A0=E6=B6=9B=29?= Date: Mon, 22 Jul 2024 11:29:14 +0800 Subject: [PATCH] feat: update --- packages/canyon-backend/src/utils/coverage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/canyon-backend/src/utils/coverage.ts b/packages/canyon-backend/src/utils/coverage.ts index b8935b07..460c73e6 100755 --- a/packages/canyon-backend/src/utils/coverage.ts +++ b/packages/canyon-backend/src/utils/coverage.ts @@ -29,7 +29,7 @@ export async function formatReportObject(c: any) { JSON.parse(JSON.stringify(x).replace(/\\\\/g, '/')); const coverage = removeSlash(await remapCoverage(c.coverage)); const instrumentCwd = removeSlash(c.instrumentCwd); - const projectInstrumentCwd = removeSlash(c.projectInstrumentCwd); + const projectInstrumentCwd = removeSlash(c.projectInstrumentCwd || ''); const reversePath = (p: string) => { const a = convertInstrumentCwd({ path: p,