CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-hoist-non-react-statics

Copies non-react specific statics from a child component to a parent component

95

1.09x
Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "Evaluates whether the solution uses hoist-non-react-statics correctly to copy custom statics onto wrapper components while keeping the returned wrapper chainable for subsequent higher-order composition.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Correct call signature",
      "description": "Invokes hoist-non-react-statics with the wrapper component as the target (first argument), the source component as the second argument, and passes the exclusions map as the optional third argument when provided.",
      "max_score": 25
    },
    {
      "name": "Static copying",
      "description": "Relies on hoist-non-react-statics to copy custom statics (including symbol properties) from the source component so they are available on the returned wrapper.",
      "max_score": 25
    },
    {
      "name": "Exclusion handling",
      "description": "Ensures excluded static keys are omitted by supplying the exclusions map to hoist-non-react-statics rather than filtering after the fact.",
      "max_score": 20
    },
    {
      "name": "Chainable return",
      "description": "Returns and reuses the hoist-non-react-statics result (the target wrapper) so it can be passed into subsequent wrapping calls without losing statics.",
      "max_score": 20
    },
    {
      "name": "String source guard",
      "description": "Avoids invoking hoist-non-react-statics when the source component is a string tag, leaving the wrapper unchanged in that case.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-hoist-non-react-statics

tile.json