Adds useful debug features to your Electron app
86
{
"context": "This evaluation assesses how well an engineer uses shallow merge patterns for options override, a core configuration management pattern in electron-debug. The focus is on proper implementation of the selector function pattern and shallow object merging with the spread operator.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Spread Operator Usage",
"description": "Uses the spread operator (...) to perform shallow merge of options objects, correctly merging partial options with global defaults",
"max_score": 30
},
{
"name": "Selector Pattern Implementation",
"description": "Correctly implements the selector function pattern that can return true, false, or a partial options object",
"max_score": 25
},
{
"name": "Boolean Return Handling",
"description": "Properly handles when selector returns true (use defaults as-is) and false (return null to indicate disabled)",
"max_score": 15
},
{
"name": "Partial Options Merge",
"description": "Correctly merges partial options object returned by selector with global defaults, ensuring item-specific values override defaults",
"max_score": 20
},
{
"name": "No Selector Handling",
"description": "Handles the case when no itemSelector is provided by defaulting to returning global defaults",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-electron-debugdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10