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
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses Jest's callback testing pattern (using the done callback parameter) to test asynchronous callback-based code. The focus is exclusively on the proper usage of Jest's async testing features for callback-based operations.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Done callback parameter",
      "description": "Test functions accept a 'done' callback parameter (e.g., test('name', (done) => {...})) to signal when asynchronous operations complete",
      "max_score": 30
    },
    {
      "name": "Calling done correctly",
      "description": "The done callback is called after the asynchronous callback executes to signal test completion. Tests invoke done() at the appropriate time after assertions.",
      "max_score": 25
    },
    {
      "name": "Error handling with done",
      "description": "When testing error scenarios, tests properly handle errors by either calling done() with no arguments after verifying error values, or using try-catch blocks that call done() on success and done(error) or done.fail() on unexpected errors",
      "max_score": 20
    },
    {
      "name": "Assertions before done",
      "description": "Assertions (expect statements) are placed before calling done() to verify callback parameters and behavior, ensuring the callback was invoked with expected values",
      "max_score": 15
    },
    {
      "name": "Timeout configuration",
      "description": "Tests specify appropriate timeout values when needed (using the third parameter to test()) for tests that require longer execution times",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-jest-circus

tile.json