jest-testing-expert

Optimizes Jest test suites for large JavaScript/TypeScript projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/hvngroup/directus_b2b_crm --skill jest-testing-expert-hvngroup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jest-testing-expert
Source: https://github.com/hvngroup/directus_b2b_crm/tree/main/.agent/skills/jest-expert
Command: npx skills add https://github.com/hvngroup/directus_b2b_crm --skill jest-testing-expert-hvngroup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Jest test suites in modern JavaScript/TypeScript projects often grow in complexity and fragility; this Skill provides expert guidance to design, optimize, and maintain robust Jest configurations, mocks, and test strategies.

Core Features & Use Cases

  • Configuration Mastery: advanced jest.config.js patterns, environment setup, module resolution
  • Advanced Mocking & Snapshots: mocking patterns, manual mocks, snapshot strategies, TypeScript integration
  • Async Testing & Performance: async patterns, timer control, performance optimization
  • Use Case: debugging failing tests, migrating to Jest, architecting scalable test suites

Quick Start

Tell me about your current Jest setup and tests, and I will propose an optimized configuration and testing strategy.

Frequently Asked Questions about jest-testing-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a slow Jest test suite in a large TypeScript project?

Optimize slow Jest test suites by applying performance profiling, configuring coverage thresholds, and streamlining module resolution in jest.config.js. This reduces fragility and improves execution speed across React, Node, and vanilla TypeScript environments.

What is the best way to configure Jest mocking and snapshots for TypeScript?

The best way to configure Jest mocking and snapshots is using advanced jest.config.js patterns with proper ts-jest or babel-jest setup. This ensures robust TypeScript integration for manual mocks and snapshot strategies across your test suite.

How do I fix Jest timer and async testing issues in React and Node?

Fix Jest timer and async testing issues by implementing timer mocks and applying specific async patterns. This provides precise control over asynchronous operations and timer functions across React, Node, and vanilla environments.

Does this Jest testing approach work with both ts-jest and babel-jest setups?

Yes, this approach works with both ts-jest and babel-jest setups. It requires proper setup of hoisting, module resolution, and environment configuration to architect scalable test suites across complex JavaScript and TypeScript projects.

Why are my Jest tests failing due to module resolution and hoisting errors?

Jest tests fail due to module resolution and hoisting errors when advanced jest.config.js patterns are misconfigured. Correcting environment setup, mocking patterns, and hoisting rules ensures robust test execution and resolves fragility.