jest-coverage

Community

Boost code quality with Jest coverage.

Authorbradtaylorsf
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers configure, run, and analyze code coverage reports generated by Jest, ensuring comprehensive testing and identifying areas needing more test coverage.

Core Features & Use Cases

  • Jest Configuration: Provides examples for jest.config.js to enable coverage collection, define reporters, and set thresholds.
  • Running Coverage: Demonstrates CLI commands and package.json scripts for executing Jest with coverage.
  • Improving Coverage: Offers strategies for identifying and fixing coverage gaps, focusing on branch coverage and edge cases.
  • Use Case: A developer wants to ensure their new feature branch meets the team's 80% line coverage requirement before merging. They use this Skill to configure Jest, run coverage, and identify which lines are not being tested.

Quick Start

Configure your Jest project to collect code coverage by adding collectCoverage: true to your jest.config.js file.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: jest-coverage
Download link: https://github.com/bradtaylorsf/alphaagent-team/archive/main.zip#jest-coverage

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.