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 criteria evaluates how well the engineer uses Jest's error snapshot testing capabilities, specifically toThrowErrorMatchingSnapshot() or toThrowErrorMatchingInlineSnapshot(), to test error messages thrown by validation functions. The focus is on proper usage of Jest's snapshot testing API for error scenarios.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses snapshot matchers",
"description": "Uses toThrowErrorMatchingSnapshot() or toThrowErrorMatchingInlineSnapshot() to test error messages instead of manual string matching",
"max_score": 40
},
{
"name": "Wraps in expect callback",
"description": "Correctly wraps throwing functions in expect() callbacks using arrow functions or anonymous functions (e.g., expect(() => validateEmail('...')).toThrowErrorMatchingSnapshot())",
"max_score": 20
},
{
"name": "Tests all error cases",
"description": "Uses error snapshot testing for all 9 error cases specified in the spec (3 email, 3 password, 3 username validation errors)",
"max_score": 25
},
{
"name": "Proper test structure",
"description": "Organizes tests appropriately using Jest's test() or it() functions with descriptive test names that correspond to the spec requirements",
"max_score": 15
}
]
}