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

{
  "context": "This evaluation assesses the engineer's proficiency in using the istanbul-lib-source-maps package to handle source map transformations for code coverage. The focus is on correct usage of the package's core API for creating stores, registering source maps, and transforming coverage data.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Store Creation",
      "description": "Uses createSourceMapStore() function to create a MapStore instance for managing source maps",
      "max_score": 20
    },
    {
      "name": "Source Map Registration",
      "description": "Correctly uses registerURL() or registerMap() methods to register source maps for each transpiled file before transformation",
      "max_score": 25
    },
    {
      "name": "Coverage Transformation",
      "description": "Uses transformCoverage() method to transform coverage data from transpiled to original source locations, passing a coverage map object",
      "max_score": 30
    },
    {
      "name": "Async Handling",
      "description": "Properly handles the asynchronous nature of transformCoverage() using async/await or promises",
      "max_score": 10
    },
    {
      "name": "Result Processing",
      "description": "Correctly extracts and processes the transformed coverage map to identify original source files and their coverage data",
      "max_score": 10
    },
    {
      "name": "Error Handling",
      "description": "Handles cases where source maps are missing or invalid gracefully, as specified in the requirements",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json