Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Nov 12, 2024
1 parent 6653d5e commit b1459f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export class CoverageClientService {




// 暂时解决方案,需要解决sourceMap问题
const {coverage} =await formatReportObject({
coverage: resetCoverageData(regularData(oldcoverage)),
coverage: (regularData(oldcoverage)),
instrumentCwd: invoke.instrumentCwd,
})

Expand Down
3 changes: 2 additions & 1 deletion packages/canyon-backend/src/utils/coverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export async function formatReportObject(c: any) {
// 去除斜杠\\
const removeSlash = (x: any) =>
JSON.parse(JSON.stringify(x).replace(/\\\\/g, "/"));
const coverage = removeSlash(await remapCoverage(c.coverage));
// 暂时解决方案,需要解决sourceMap问题
const coverage = removeSlash(c.coverage);
const instrumentCwd = removeSlash(c.instrumentCwd);
const projectInstrumentCwd = removeSlash(c.projectInstrumentCwd || "");
const reversePath = (p: string) => {
Expand Down

0 comments on commit b1459f2

Please sign in to comment.