Vant skill test integration
Skill dhaupin/vant/models/public/skills/vant-skill-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.From its SKILL.md
npx -y skills add dhaupin/vant --skill vant-skill-test-integrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.3 KB, 282 tokens by cl100k_base, as published. Nobody here has run it
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: '[email protected]' })
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('[email protected]', 'password')
expect(session.user.email).toBe('[email protected]')
})
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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.