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

{
  "context": "This criteria evaluates how well the engineer uses istanbul-lib-source-maps to implement source map registration and retrieval functionality. The focus is on correctly utilizing the MapStore class and its methods for managing source maps.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "MapStore Creation",
      "description": "Uses createSourceMapStore() or instantiates MapStore directly to create a source map store instance for managing source maps",
      "max_score": 20
    },
    {
      "name": "URL Registration",
      "description": "Correctly uses mapStore.registerURL() method to register source maps by providing file paths and source map URLs",
      "max_score": 20
    },
    {
      "name": "Object Registration",
      "description": "Correctly uses mapStore.registerMap() method to register pre-parsed source map objects for file paths",
      "max_score": 20
    },
    {
      "name": "Synchronous Retrieval",
      "description": "Uses mapStore.getSourceMapSync() method to synchronously retrieve registered source maps for given file paths",
      "max_score": 25
    },
    {
      "name": "Undefined Handling",
      "description": "Correctly handles the case when getSourceMapSync() returns undefined for files without registered source maps",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json