integration-testing-specialist

Test integration between modules, API endpoints, and databases with MSW mocks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Whaleylaw/llm-lawyer --skill integration-testing-specialist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-testing-specialist
Source: https://github.com/Whaleylaw/llm-lawyer/tree/main/.claude/skills/integration-testing-specialist
Command: npx skills add https://github.com/Whaleylaw/llm-lawyer --skill integration-testing-specialist

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams detect and resolve failures in interactions between modules, API endpoints, databases, and external services by providing patterns, checks, and examples to validate data flow, transactional behavior, and multi-step workflows.

Core Features & Use Cases

  • API + Database Validation: End-to-end patterns that assert HTTP responses and verify resulting database state and transactions.
  • Multi-module Interaction Tests: Examples showing how to validate side effects across services such as document creation triggering notifications and rollback behavior on downstream failures.
  • External Service Mocking & Auth Checks: MSW-based mocks for third-party APIs, authentication/authorization flow tests, and transaction commit/rollback verification.
  • Use Case: Validate a signup → document creation → notification workflow using a test database, mocked external APIs, and assertions for both happy and failure paths.

Quick Start

Run an integration test that signs up a test user, authenticates, creates a document through the API, verifies the database record and notification side-effect, and asserts rollback when a downstream service fails.

Frequently Asked Questions about integration-testing-specialist

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

FAQPage Schema
How do I test API endpoints and database state changes in the same integration test?

Integration testing validates API endpoints and database state changes together by asserting HTTP responses and verifying resulting database records and transaction behavior. This approach ensures data flow consistency across multi-step workflows.

How do I verify transaction rollback behavior when a downstream service fails?

Transaction rollback behavior is verified by triggering a downstream service failure during an integration test and asserting that database changes are rolled back. This validates multi-module interaction resilience and data integrity.

Can I use MSW to mock external APIs for backend integration testing?

MSW can mock external APIs for backend integration testing by simulating realistic third-party service responses. This isolates application modules during multi-step workflow validation without requiring live external dependencies.

What is the best way to test authentication flows and role-based access control?

Testing authentication flows and role-based access control involves validating multi-step workflows like user signup and login. Integration tests assert authentication behavior and verify authorization rules across API endpoints and database states.

How do I validate side effects across services like document creation triggering notifications?

Validating side effects across services requires integration tests that execute document creation and assert notification triggers. This multi-module interaction testing verifies data flow and workflow consistency using a test database and mocked APIs.

Does Vitest support integration testing for multi-step backend workflows?

Vitest supports integration testing for multi-step backend workflows by combining API endpoint validation, database state verification, and external service mocking. It handles transaction commit and rollback assertions effectively.