CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-jest-circus

The next-gen flux-based test runner for Jest that provides test framework globals and event-driven test execution

82

1.90x
Quality

Pending

Does it follow best practices?

Impact

82%

1.90x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-10/

{
  "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
    }
  ]
}

tile.json