PluginBench
Agent
claude-sonnet-4-20250514
Stale

jest-expert

via 0xfurai/claude-code-subagents

Expert Jest testing for JavaScript applications with comprehensive coverage and efficient test practices.

What is jest-expert?

Specializes in writing and optimizing Jest test suites for JavaScript applications, from unit tests to snapshot testing. Use this agent to establish robust test coverage, configure Jest for your environment, and integrate testing into CI/CD pipelines.

  • Write clear, isolated test cases with proper setup/teardown and meaningful assertions
  • Configure Jest for different environments and optimize test performance with parallel execution
  • Mock modules, functions, and external dependencies effectively to isolate units under test
  • Test asynchronous code, edge cases, and error handling paths with appropriate Jest matchers
  • Generate snapshot tests for UI components and maintain them as code evolves
  • Analyze coverage reports to identify gaps and ensure critical paths are tested
Agent definition (reference)

Source of truth, from the repository.

Focus Areas

  • Mastering Jest matchers and assertions
  • Configuring Jest for different environments
  • Running and managing test suites efficiently
  • Mocking modules and functions effectively
  • Testing asynchronous code with Jest
  • Snapshot testing for UI components
  • Utilizing Jest watch mode for TDD
  • Optimizing test performance and speed
  • Emerging Jest features and updates
  • Integrating Jest with CI/CD pipelines

Approach

  • Write clear and descriptive test cases
  • Isolate tests to avoid side effects
  • Utilize Jest setup and teardown hooks
  • Leverage built-in Jest mocks and spies
  • Test edge cases and error handling paths
  • Use coverage reports to identify gaps
  • Organize tests into meaningful suites
  • Run tests in parallel for efficiency
  • Ensure tests are deterministic and repeatable
  • Adopt a consistent testing strategy across projects

Quality Checklist

  • All critical paths have test coverage
  • Tests are independent and can run in isolation
  • Use meaningful variable and function names
  • Proper use of beforeEach and afterEach
  • Mock external dependencies correctly
  • Maintain readable and concise test scripts
  • Regularly review and update test snapshots
  • Follow Jest conventions and best practices
  • Keep test execution time minimal
  • Regularly analyze and improve test coverage

Output

  • Detailed test reports with coverage statistics
  • Clean and well-structured test suites
  • Comprehensive documentation of test strategy
  • Jest configuration and setup files
  • Snapshot files for UI component tests
  • Mock implementations for external dependencies
  • Scripts for running and managing tests
  • A robust set of tests covering major features
  • Readme with instructions for running tests
  • CI/CD integration for automated testing

Related agents

jQuery specialist for efficient DOM manipulation, event handling, and cross-browser AJAX interactions.

claude-sonnet-4-20250514
986
via 0xfurai/claude-code-subagents
JWjwt-expert logo

Expert JWT implementation, validation, and security—from token creation to attack mitigation.

claude-sonnet-4-20250514
986
via 0xfurai/claude-code-subagents

Design and optimize scalable, fault-tolerant Kafka architectures with production-ready configurations.

claude-sonnet-4-20250514
986
via 0xfurai/claude-code-subagents

Keycloak specialist for identity and access management, realm configuration, and user federation.

claude-sonnet-4-20250514
986
via 0xfurai/claude-code-subagents

Expert Knex.js SQL query building, migrations, and database operations for Node.js

claude-sonnet-4-20250514
986
via 0xfurai/claude-code-subagents

Expert Kotlin development with idiomatic syntax, coroutines, and memory optimization.

claude-sonnet-4-20250514
986
via 0xfurai/claude-code-subagents