The next-gen flux-based test runner for Jest that provides test framework globals and event-driven test execution
82
{
"context": "This criteria evaluates the engineer's ability to use Jest's equality matchers (toBe, toEqual, toStrictEqual) appropriately for different comparison scenarios. The evaluation focuses on whether the correct matcher is used for reference identity, deep equality, and strict equality checks.",
"type": "weighted_checklist",
"checklist": [
{
"name": "toBe for primitives",
"description": "Uses expect().toBe() matcher for comparing primitive values (numbers, strings, booleans) in reference identity tests",
"max_score": 20
},
{
"name": "toBe for references",
"description": "Uses expect().toBe() matcher for verifying that two variables reference the same object (reference identity)",
"max_score": 20
},
{
"name": "toEqual for deep equality",
"description": "Uses expect().toEqual() matcher for comparing objects and arrays with the same structure and content, where reference identity is not required",
"max_score": 25
},
{
"name": "toStrictEqual for strict checks",
"description": "Uses expect().toStrictEqual() matcher for strict equality checks that differentiate between sparse arrays and dense arrays with undefined values",
"max_score": 25
},
{
"name": "Correct negation usage",
"description": "Uses .not.toBe() or similar negation correctly when asserting that reference identity check should fail for different object references",
"max_score": 10
}
]
}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