majiayu000/claude-skill-registry-data/vitest-patterns
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Tainted
Author "majiayu000" has blocked skill(s)
Unit testing patterns with Vitest in LivestockAI
Install
npx vskill@latest install majiayu000/claude-skill-registry-data/vitest-patternsSKILL.md
The same SKILL.md was published earlier as majiayu000/claude-skill-registry/vitest-patterns.
Vitest Patterns
LivestockAI uses Vitest for fast unit testing with TypeScript support.
Running Tests
Note: bun run test uses Vitest (respects config), while bun test uses Bun's built-in runner (ignores Vitest config).
Test File Organization
Test Naming
- Unit tests:
feature.test.ts - Property tests:
feature.property.test.ts - Integration tests:
feature.integration.test.ts
Basic Test Structure
Mocking
Testing Service Layer
Service functions are pure and easy to test:
Coverage Requirements
- Minimum 80% for business logic
- 100% for financial calculations
- Critical path testing for offline functionality
Related Skills
property-testing- Property-based testsintegration-testing- Database teststhree-layer-architecture- Service layer testing
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/vitest-patterns/SKILL.md
Popularity
- Repository stars
- 23
- Repository forks
- 9
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/majiayu000/claude-skill-registry-data/vitest-patterns)