CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-istanbul-lib-source-maps

Source maps support for Istanbul code coverage toolkit, enabling accurate coverage reporting for transpiled JavaScript code

Overall
score

98%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses the istanbul-lib-source-maps and @jridgewell/trace-mapping packages to validate, parse, and process source maps according to the Source Map v3 specification. The focus is on proper usage of source map format handling APIs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "TraceMap usage",
      "description": "Uses @jridgewell/trace-mapping's TraceMap class to parse and work with source map objects, correctly instantiating it with source map data",
      "max_score": 25
    },
    {
      "name": "Version validation",
      "description": "Properly validates the source map version property is set to 3, as required by the Source Map v3 specification",
      "max_score": 15
    },
    {
      "name": "Required property validation",
      "description": "Validates presence and correct types of required source map properties: sources (array) and mappings (string)",
      "max_score": 15
    },
    {
      "name": "String/object parsing",
      "description": "Correctly handles both JSON string and object representations of source maps, parsing strings to objects when needed",
      "max_score": 15
    },
    {
      "name": "Position lookup methods",
      "description": "Uses TraceMap's originalPositionFor method or equivalent to perform position lookups from generated to original code positions",
      "max_score": 20
    },
    {
      "name": "Bias mode support",
      "description": "Implements or uses GREATEST_LOWER_BOUND and LEAST_UPPER_BOUND bias modes when performing position lookups in source maps",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-istanbul-lib-source-maps

tile.json