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

{
  "context": "This criteria evaluates how effectively the engineer uses the istanbul-lib-source-maps package to transform code coverage data from transpiled sources back to original source locations. The focus is on proper usage of the package's API for coverage transformation functionality.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Store Creation",
      "description": "Uses createSourceMapStore() to create a MapStore instance for managing source maps",
      "max_score": 20
    },
    {
      "name": "Coverage Map Handling",
      "description": "Properly handles istanbul-lib-coverage CoverageMap objects or coverage data structures as input",
      "max_score": 15
    },
    {
      "name": "Transform Invocation",
      "description": "Calls mapStore.transformCoverage() method with the coverage data to perform the transformation",
      "max_score": 30
    },
    {
      "name": "Async Handling",
      "description": "Correctly handles the asynchronous nature of transformCoverage() using async/await or promises",
      "max_score": 15
    },
    {
      "name": "Embedded Source Maps",
      "description": "Solution works with coverage data that has embedded inputSourceMap properties without requiring manual registration",
      "max_score": 15
    },
    {
      "name": "Return Value",
      "description": "Returns the transformed CoverageMap object from transformCoverage() with original source file references",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json