Source maps support for Istanbul code coverage toolkit, enabling accurate coverage reporting for transpiled JavaScript code
Overall
score
98%
{
"context": "This criteria evaluates how well the engineer uses istanbul-lib-source-maps' MappedCoverage class to accumulate coverage entries with automatic deduplication and hit count summation. The focus is on proper use of the addStatement, addFunction, and addBranch methods.",
"type": "weighted_checklist",
"checklist": [
{
"name": "MappedCoverage instantiation",
"description": "Creates a MappedCoverage instance (imported from istanbul-lib-source-maps/lib/mapped) with the file path to serve as the accumulation container",
"max_score": 25
},
{
"name": "Statement accumulation",
"description": "Uses the addStatement(loc, hits) method to add each statement entry, which automatically deduplicates by location and sums hit counts",
"max_score": 25
},
{
"name": "Function accumulation",
"description": "Uses the addFunction(name, decl, loc, hits) method to add each function entry, which automatically deduplicates by declaration and body location",
"max_score": 25
},
{
"name": "Branch accumulation",
"description": "Uses the addBranch(type, loc, locations, hits) method to add each branch entry, which automatically deduplicates and accumulates hit arrays",
"max_score": 25
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-istanbul-lib-source-mapsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10