{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-integration-testing-405044caa702","title":"Write integration tests for key workflows","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-integration-testing-405044caa702\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: integration-testing\ndescription: \"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.\"\nmetadata:\n  category: testing\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"30\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/testing\/integration-testing\n---\n\n# Write integration tests for key workflows\n\nUnit tests verify individual functions in isolation, but they can't catch the bugs that occur when those functions interact \u2014 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.\n\n## Quick Reference\n\n- Integration tests verify that multiple units work correctly together\n- Test at the boundary where different parts of your system meet\n- Use a real database in tests (test DB or in-memory) rather than mocking everything\n- Test happy paths and the most critical error paths\n\n## Check\n\nIdentify the key integration points in this codebase \u2014 where API routes call services, where services interact with the database, and where components interact with state management. Are these tested?\n\n## Fix\n\nWrite integration tests for the identified critical paths, testing the interactions between components rather than each in isolation.\n\n## Explain\n\nExplain integration testing, how it differs from unit and E2E testing, and what tools to use for API and component integration tests.\n\n## Code Review\n\nReview 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.\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\/integration-testing\n","use_cases":["Verify that API routes correctly interact with backend services","Test database interactions in real environments","Validate state management interactions in complex UI components"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/integration-testing\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:39:46.000000Z","updated_at":"2026-11-23T04:55:22.000000Z","seo_title":"Write integration tests for key workflows","seo_description":"Ensure your system's components work together correctly with integration tests. Test API routes, services, and database interactions.","seo_keywords":["integration testing","API testing","database testing","component testing","test coverage"]}}