Create an error from multiple errors
94
{
"context": "This criteria evaluates the engineer's ability to use the aggregate-error package to handle multiple error input types (Error instances, strings, and plain objects). The focus is on correct usage of AggregateError's constructor and its ability to normalize different input formats into a unified error collection.",
"type": "weighted_checklist",
"checklist": [
{
"name": "AggregateError instantiation",
"description": "Uses the AggregateError constructor from the aggregate-error package to create an error aggregator instance",
"max_score": 30
},
{
"name": "Error instance handling",
"description": "Correctly passes Error instances to AggregateError, allowing them to be stored without modification",
"max_score": 15
},
{
"name": "String conversion",
"description": "Correctly passes string values to AggregateError, which converts them into Error instances",
"max_score": 15
},
{
"name": "Plain object conversion",
"description": "Correctly passes plain objects with message properties to AggregateError, which converts them while preserving object properties",
"max_score": 15
},
{
"name": "Errors array access",
"description": "Uses the .errors property or getter from the AggregateError instance to access the normalized error collection",
"max_score": 15
},
{
"name": "Mixed type handling",
"description": "Successfully passes arrays containing mixed types (Error instances, strings, and plain objects) to AggregateError in a single call",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-aggregate-errordocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9