tessl install tessl/npm-jest-circus@29.7.0The next-gen flux-based test runner for Jest that provides test framework globals and event-driven test execution
Agent Success
Agent success rate when using this tile
82%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.91x
Baseline
Agent success rate without this tile
43%
{
"context": "This evaluation assesses how well the engineer uses Jest's mock lifecycle methods (mockClear, mockReset, mockRestore) to manage mock state. The focus is on correct usage of these specific Jest APIs to implement the test utilities.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses mockClear()",
"description": "The clearMockHistory function correctly uses the .mockClear() method on the provided mock function to clear call history without affecting implementation.",
"max_score": 20
},
{
"name": "Uses mockReset()",
"description": "The resetMock function correctly uses the .mockReset() method on the provided mock function to clear call history and remove custom implementations.",
"max_score": 20
},
{
"name": "Uses mockRestore()",
"description": "The restoreSpy function correctly uses the .mockRestore() method on the provided spy function to restore the original implementation.",
"max_score": 20
},
{
"name": "Batch clear implementation",
"description": "The clearMultipleMocks function iterates through the array and applies .mockClear() to each mock function.",
"max_score": 20
},
{
"name": "Batch reset implementation",
"description": "The resetMultipleMocks function iterates through the array and applies .mockReset() to each mock function.",
"max_score": 20
}
]
}