aj-geddes avatar

Integration Testing

This walks you through building proper integration tests that actually verify your components work together, not just in isolation. You'll test API endpoints against real databases, validate service-to-service communication, and check authentication flows without mocking away the interesting parts. The guides cover API testing with supertest, database integration with test containers, external service mocking strategies, and message queue validation. The best practices section is practical: use real databases (containerized or in-memory), clean up between tests, and actually test error cases. If you're tired of unit tests passing but production still breaking, this gives you the patterns to catch integration issues before deployment.

skills.sh installs
557
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill integration-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Integration Testing

Table of Contents

Overview

Integration testing validates that different components, modules, or services work correctly together. Unlike unit tests that isolate single functions, integration tests verify the interactions between multiple parts of your system including databases, APIs, external services, and infrastructure.

When to Use

  • Testing API endpoints with real database connections
  • Verifying service-to-service communication
  • Validating data flow across multiple layers
  • Testing repository/DAO layer with actual databases
  • Checking authentication and authorization flows
  • Verifying message queue consumers and producers
  • Testing third-party service integrations

Quick Start

Minimal working example:

// test/api/users.integration.test.js
const request = require("supertest");
const app = require("../../src/app");
const { setupTestDB, teardownTestDB } = require("../helpers/db");

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Frontend Development, Backend & APIs, Testing & QA, AI & Agent Building, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1adobe avatarprototypeadobe/skillsRender a proposed redesign of a page on the current website as a self-contained static HTML file, then iterate via the impeccable craft loop. Per-page, idempote555skills.sh installs
2martinholovsky avatartaurimartinholovsky/claude-skills-generatorCross-platform desktop application framework combining Rust backend with web frontend, emphasizing security and performance553skills.sh installs
3vintasoftware avatarcdrf-expertvintasoftware/django-ai-pluginsExpert guidance for Django REST Framework class-based views using Classy DRF (https://www.cdrf.co). Use when selecting or debugging APIView, GenericAPIView, con544skills.sh installs
4intellectronica avatarcopilot-sdkintellectronica/agent-skillsThis skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java. It covers setup, authentication, permissions, streaming eve535skills.sh installs
5zjfls avatarnews-summaryzjfls/zhoujie-claude-skills新闻搜索、新闻摘要、新闻汇总、热点新闻、最新新闻、新闻整理、新闻收集。帮你搜索最近几天的相关新闻(12-25条),生成精美的HTML摘要页面,每条新闻都有摘要和AI深度解读功能,自动打开浏览器展示535skills.sh installs
6davila7 avatarcontent-research-writerdavila7/claude-code-templatesAssists in writing high-quality content by conducting research, adding citations, improving hooks, iterating on outlines, and providing real-time feedback on ea533skills.sh installs