evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
{
"context": "This evaluation assesses how well the engineer uses @mdx-js/mdx's component error handling capabilities to build an MDX evaluation utility. The focus is on proper usage of the evaluate() function, development mode features, and error detection for undefined components.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses evaluate function",
"description": "Uses the evaluate() or evaluateSync() function from @mdx-js/mdx to compile and execute MDX content",
"max_score": 30
},
{
"name": "Provides JSX runtime",
"description": "Correctly provides JSX runtime functions (Fragment, jsx, jsxs from react/jsx-runtime or equivalent) to the evaluate() function",
"max_score": 20
},
{
"name": "Passes components",
"description": "Passes the components object to evaluate() so that custom components are available during MDX execution",
"max_score": 15
},
{
"name": "Development mode",
"description": "Uses the development: true option when specified to enable enhanced error messages with source location information",
"max_score": 15
},
{
"name": "Error handling",
"description": "Implements try-catch to catch component missing errors thrown by the _missingMdxReference helper function",
"max_score": 15
},
{
"name": "Returns correct structure",
"description": "Returns an object with success, error, and result fields as specified in the API, correctly handling both success and error cases",
"max_score": 5
}
]
}