Parameterised tests for Jest that enable running the same test multiple times with different data sets using arrays or tagged template literals
85
Pending
Does it follow best practices?
Impact
85%
1.10xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"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
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10