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-7/

{
  "context": "This criteria evaluates how well the engineer uses the istanbul-lib-source-maps package to enrich coverage data with source map information. The focus is on correct usage of the MapStore API, proper source map registration, and effective use of the addInputSourceMapsSync method.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "MapStore Creation",
      "description": "Uses createSourceMapStore() to create a MapStore instance for managing source maps",
      "max_score": 15
    },
    {
      "name": "Source Map Discovery",
      "description": "Correctly discovers and reads .map files from the provided directory path",
      "max_score": 20
    },
    {
      "name": "Source Map Registration",
      "description": "Uses mapStore.registerMap() or mapStore.registerURL() to register each discovered source map with the correct file path",
      "max_score": 25
    },
    {
      "name": "Coverage Data Enrichment",
      "description": "Uses mapStore.addInputSourceMapsSync() to add source map references to the coverage data object in place",
      "max_score": 30
    },
    {
      "name": "Correct Return Value",
      "description": "Returns the enriched coverage data object (which was modified in place by addInputSourceMapsSync)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json