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 18, 2024
1 parent 5b307fe commit bb6c026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/canyon-collect/src/utils/coverage.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import libCoverage from 'istanbul-lib-coverage';
import libSourceMaps from 'istanbul-lib-source-maps';
import fs from "node:fs";
import fs from 'node:fs';
// import { mergeCoverageMap as mergeCoverageMapOfCanyonData } from "canyon-data";
// import { merge_coverage_json_str } from 'canyon-data';
function parseInstrumentCwd(instrumentCwd) {
Expand Down Expand Up @@ -139,6 +139,7 @@ export function regularData(data: any) {
return obj;
}

// TODO:在覆盖率map数据上来的时候,有必要做一次过滤,去掉start和end为空的情况。然后再交由zod进行校验,这里需要非常严格的校验。
const removeStartEndNull = (coverage) => {
const obj = {};
Object.keys(coverage).forEach((key) => {
Expand Down

0 comments on commit bb6c026

Please sign in to comment.