Ctrl + K
DocumentationLog inGet started

tessl/npm-jest-circus

tessl install tessl/npm-jest-circus@29.7.0

The 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%

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

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/jest-circus@29.7.x
tile.json