From a53c4d1f1a59f271fd22bc3b527c63e2f2f670ff Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Tue, 19 Nov 2024 20:07:59 +0800 Subject: [PATCH] feat: update --- packages/canyon-backend/src/utils/coverage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/canyon-backend/src/utils/coverage.ts b/packages/canyon-backend/src/utils/coverage.ts index d1548db1..8c0fcee2 100755 --- a/packages/canyon-backend/src/utils/coverage.ts +++ b/packages/canyon-backend/src/utils/coverage.ts @@ -162,6 +162,8 @@ const removeStartEndNull = (coverage) => { ...item, branchMap: newBranchMap, }; + } else { + obj[key] = item; } }); // fs.writeFileSync('./coverage.json', JSON.stringify(obj));