CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-jest-each

Parameterised tests for Jest that enable running the same test multiple times with different data sets using arrays or tagged template literals

85

1.10x
Quality

Pending

Does it follow best practices?

Impact

85%

1.10x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses Jest's transform system to create a custom TypeScript transformer that preserves source maps through the transformation pipeline. The focus is on correct usage of transformer APIs, source map generation, and integration with Jest's configuration system.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Transformer interface implementation",
      "description": "Implements the process() function with the correct signature accepting sourceText, sourcePath, and options parameters, returning a TransformedSource object",
      "max_score": 20
    },
    {
      "name": "TypeScript compilation",
      "description": "Uses TypeScript's transpileModule() or similar API to compile TypeScript source code to JavaScript, configuring the compiler with appropriate options",
      "max_score": 15
    },
    {
      "name": "Source map generation",
      "description": "Configures TypeScript compiler with sourceMap: true or similar option to generate source maps during transformation",
      "max_score": 20
    },
    {
      "name": "Source map preservation",
      "description": "Returns the source map in the TransformedSource result object, ensuring it's in the correct format (map property containing the source map string or object)",
      "max_score": 20
    },
    {
      "name": "Jest configuration",
      "description": "Creates or modifies jest.config.js/ts to use the custom transformer via the transform configuration option, mapping .ts files to the transformer module",
      "max_score": 15
    },
    {
      "name": "Cache key implementation",
      "description": "Implements getCacheKey() function to enable Jest's transformation caching, incorporating relevant factors like source content, file path, and transformer options",
      "max_score": 10
    }
  ]
}

tile.json