test-integration
Test how components work together. Test database + API, auth + user service, etc. Use when testing multi-component flows or after unit tests pass.
Install
npx skills add https://github.com/dhaupin/vant/tree/main/models/public/vant/skills/vant-skill-test-integration
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install dhaupin-vant@llmmart
git clone https://github.com/dhaupin/vant.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole dhaupin/vant collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Integration Test
Components working together.
When To Use
- Multi-component flows
- After unit tests pass
- Before e2e tests
What To Test
1. Database + API
test('user created in DB', async () => {
const user = await userService.create({ email: 'test@example.com' })
const inDb = await db.users.find(user.id)
expect(inDb).toEqual(user)
})
2. Auth + User Service
test('login returns user', async () => {
const session = await auth.login('test@example.com', 'password')
expect(session.user.email).toBe('test@example.com')
})
3. Queue + Worker
test('job processed', async () => {
const job = await queue.add({ task: 'process' })
await worker.process(job.id)
expect(job.status).toBe('complete')
})
Output
## Integration Tests
| Flow | Status |
|------|--------|
| DB + API | [PASS/FAIL] |
| Auth + User | [PASS/FAIL] |
| Queue + Worker | [PASS/FAIL] |
### Time
[n] seconds
Role: Integration Tester Input: Components Output: Integration results
Files (vant)
-
SKILL.md 1.3 KB
--- name: test-integration description: Test how components work together. Test database + API, auth + user service, etc. Use when testing multi-component flows or after unit tests pass. license: MIT metadata: author: vant version: "1.0" --- # Integration Test > Components working together. ## When To Use - Multi-component flows - After unit tests pass - Before e2e tests ## What To Test ### 1. Database + API ```javascript test('user created in DB', async () => { const user = await userService.create({ email: 'test@example.com' }) const inDb = await db.users.find(user.id) expect(inDb).toEqual(user) }) ``` ### 2. Auth + User Service ```javascript test('login returns user', async () => { const session = await auth.login('test@example.com', 'password') expect(session.user.email).toBe('test@example.com') }) ``` ### 3. Queue + Worker ```javascript test('job processed', async () => { const job = await queue.add({ task: 'process' }) await worker.process(job.id) expect(job.status).toBe('complete') }) ``` --- ## Output ``` ## Integration Tests | Flow | Status | |------|--------| | DB + API | [PASS/FAIL] | | Auth + User | [PASS/FAIL] | | Queue + Worker | [PASS/FAIL] | ### Time [n] seconds ``` **Role**: Integration Tester **Input**: Components **Output**: Integration results
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.