{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-test-coverage-dadff9a0b468","title":"Maintain Test Coverage Thresholds","summary":"Set and enforce minimum test coverage thresholds in CI\/CD pipelines to ensure code quality and prevent regression by verifying that test coverage remains above safe levels.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-test-coverage-dadff9a0b468","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-test-coverage-dadff9a0b468","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-test-coverage-dadff9a0b468.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-test-coverage-dadff9a0b468\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure that test coverage thresholds are configured in Jest, Vitest, or your testing framework, and that coverage checks are added to CI\/CD pipelines. Exclude generated code, type definitions, and config files from coverage calculations.","instructions":"---\nname: test-coverage\ndescription: \"Use when reviewing CI coverage, automated checks, or test strategy related to Maintain test coverage thresholds. Focus on whether the rule is continuously verified, not just documented.\"\nmetadata:\n  category: testing\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/testing\/test-coverage\n---\n\n# Maintain test coverage thresholds\n\nCoverage thresholds prevent code quality from degrading over time by failing builds when test coverage drops below safe levels.\n\n## Quick Reference\n\n- Set global thresholds: 70% branches, 80% lines\/functions\/statements\n- Apply stricter thresholds (90%+) to critical utility code\n- Exclude generated code, type definitions, and config files\n- Focus on meaningful coverage\u2014test behavior, not just lines\n\n## Check\n\nReview this project's test coverage configuration to ensure minimum thresholds are set and enforced in CI\/CD.\n\n## Fix\n\nConfigure coverage thresholds in Jest, Vitest, or your testing framework, and add coverage checks to CI\/CD.\n\n## Explain\n\nExplain how to set up test coverage thresholds and what coverage levels are appropriate for different types of code.\n\n## Code Review\n\nReview tests, CI workflows, and enforcement points related to Maintain test coverage thresholds. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/testing\/test-coverage\n","use_cases":["Enforce minimum test coverage in CI\/CD pipelines","Prevent regression by ensuring test coverage remains above safe thresholds","Verify that test coverage is continuously monitored and enforced"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/test-coverage\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T05:54:19.000000Z","updated_at":"2026-11-24T07:12:47.000000Z","seo_title":"Maintain Test Coverage Thresholds for Code Quality","seo_description":"Set and enforce minimum test coverage thresholds in CI\/CD pipelines to ensure code quality and prevent regression by verifying that test coverage remains above safelevels","seo_keywords":["test coverage thresholds","CI\/CD test coverage","enforce test coverage","code quality checks"]}}