CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-aggregate-error

Create an error from multiple errors

94

1.28x
Quality

Pending

Does it follow best practices?

Impact

94%

1.28x

Average score across 9 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-2/

{
  "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
    }
  ]
}

tile.json