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

{
  "context": "This evaluation assesses how effectively the engineer uses istanbul-lib-source-maps to transform coverage data with embedded source maps. The criteria focus on proper usage of the MapStore API, including createSourceMapStore, registerMap, and transformCoverage methods.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "MapStore Creation",
      "description": "Uses createSourceMapStore() function to create a MapStore instance for managing source maps",
      "max_score": 15
    },
    {
      "name": "transformCoverage Usage",
      "description": "Uses mapStore.transformCoverage() method to transform coverage data, correctly handling the async nature of the method (returns Promise)",
      "max_score": 25
    },
    {
      "name": "Embedded Map Detection",
      "description": "Relies on automatic detection of embedded inputSourceMap property in coverage data without manual intervention",
      "max_score": 20
    },
    {
      "name": "registerMap Usage",
      "description": "Uses mapStore.registerMap(filePath, sourceMap) method to manually register source maps for fallback scenarios",
      "max_score": 20
    },
    {
      "name": "CoverageMap Handling",
      "description": "Correctly works with istanbul-lib-coverage CoverageMap objects as input to transformCoverage() and handles the returned transformed CoverageMap",
      "max_score": 15
    },
    {
      "name": "Source Content Caching",
      "description": "Leverages automatic source content extraction and caching from sourcesContent in embedded source maps",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

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

tile.json