# Write integration tests for key workflows

Write integration tests to verify that API routes, services, and database interactions work correctly together in real-world scenarios. Deliverables include test scripts that validate component interactions.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-integration-testing-405044caa702

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-integration-testing-405044caa702

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-integration-testing-405044caa702.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-integration-testing-405044caa702/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/integration-testing/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T16:39:46.000000Z

**Updated at:** 2026-11-23T04:55:22.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure a real database (test DB or in-memory) is used in tests rather than mocking everything. Identify key integration points such as API routes calling services, services interacting with the database, and components interacting with state management before writing tests.

### When to use it

- Verify that API routes correctly interact with backend services
- Test database interactions in real environments
- Validate state management interactions in complex UI components

## Skill instructions

---
name: integration-testing
description: "Use when reviewing CI coverage, automated checks, or test strategy related to Write integration tests for key workflows. Focus on whether the rule is continuously verified, not just documented."
metadata:
  category: testing
  priority: high
  difficulty: intermediate
  estimatedTime: "30"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/testing/integration-testing
---

# Write integration tests for key workflows

Unit tests verify individual functions in isolation, but they can't catch the bugs that occur when those functions interact — a perfectly correct validation function and a correct database function can still fail when wired together incorrectly. Integration tests catch these wiring bugs before they reach production, where they're expensive to diagnose.

## Quick Reference

- Integration tests verify that multiple units work correctly together
- Test at the boundary where different parts of your system meet
- Use a real database in tests (test DB or in-memory) rather than mocking everything
- Test happy paths and the most critical error paths

## Check

Identify the key integration points in this codebase — where API routes call services, where services interact with the database, and where components interact with state management. Are these tested?

## Fix

Write integration tests for the identified critical paths, testing the interactions between components rather than each in isolation.

## Explain

Explain integration testing, how it differs from unit and E2E testing, and what tools to use for API and component integration tests.

## Code Review

Review tests, CI workflows, and enforcement points related to Write integration tests for key workflows. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/testing/integration-testing

