or run

tessl search
Log in

Version

Files

tile.json

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses @mdx-js/mdx's compile() function to handle export-all statements in MDX files, specifically testing knowledge of different output formats (program vs function-body) and how they handle export * from statements.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses compile function",
      "description": "Uses the compile() function from @mdx-js/mdx to compile MDX source code",
      "max_score": 20
    },
    {
      "name": "Program format compilation",
      "description": "Compiles MDX with outputFormat: 'program' (or default) to generate ES module format that preserves export * from statements as-is",
      "max_score": 25
    },
    {
      "name": "Function-body format compilation",
      "description": "Compiles MDX with outputFormat: 'function-body' to generate function body format that handles export-all by importing modules and spreading into return object",
      "max_score": 25
    },
    {
      "name": "Extracts compiled code",
      "description": "Correctly extracts the compiled JavaScript code from the VFile result (e.g., using file.value or String(file))",
      "max_score": 15
    },
    {
      "name": "Returns both formats",
      "description": "Returns an object containing both program and functionBody compiled outputs as specified in the API",
      "max_score": 15
    }
  ]
}