Source maps support for Istanbul code coverage toolkit, enabling accurate coverage reporting for transpiled JavaScript code
98
Pending
Does it follow best practices?
Impact
98%
1.75xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how effectively the engineer uses the istanbul-lib-source-maps package to implement position mapping from generated code to original source locations. The focus is on proper usage of the package's source map parsing, position lookup, and mapping utilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "TraceMap usage",
"description": "Uses @jridgewell/trace-mapping's TraceMap class to parse and work with source map data, as this is the underlying source map parsing library used by istanbul-lib-source-maps",
"max_score": 30
},
{
"name": "Position lookup",
"description": "Uses originalPositionFor() method from TraceMap or source-map library to look up original positions for generated code locations",
"max_score": 30
},
{
"name": "Coordinate handling",
"description": "Correctly handles line/column coordinate conventions (1-based vs 0-based) as required by source map specifications",
"max_score": 15
},
{
"name": "Null mapping handling",
"description": "Properly checks for and handles null or undefined results when positions have no source map mapping",
"max_score": 15
},
{
"name": "Source file extraction",
"description": "Correctly extracts the source file path from the mapping result using the appropriate property (typically 'source')",
"max_score": 10
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10