The next-gen flux-based test runner for Jest that provides test framework globals and event-driven test execution
82
{
"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
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-jest-circusevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10