Vitest
Automates UI tests using Vitest, ensuring Jezweb components function correctly across browsers and devices.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add jezweb-vitest npx -- -y @trustedskills/jezweb-vitest
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"jezweb-vitest": {
"command": "npx",
"args": [
"-y",
"@trustedskills/jezweb-vitest"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to run Vitest, a fast and extensible unit testing framework designed specifically for modern JavaScript environments. It allows agents to execute test suites, verify code correctness, and generate reports directly within the agent's workflow.
When to use it
- You need to validate logic in React or Vue applications before deployment.
- Your development pipeline requires automated regression testing for new feature branches.
- You want an AI agent to act as a QA engineer by running specific test cases on demand.
- You are building a CI/CD integration where the agent must confirm tests pass before merging code.
Key capabilities
- Executes Vitest commands to run unit and end-to-end tests.
- Parses test output to identify failures, errors, or skipped suites.
- Supports mocking dependencies and managing complex test environments.
- Integrates with standard JavaScript testing patterns and assertions.
Example prompts
- "Run the full test suite for the authentication module and summarize any failures."
- "Execute only the tests related to the user profile API and report the results."
- "Update the mock data in
mocks/user.jsonand re-run the affected test cases."
Tips & gotchas
Ensure Vitest is installed as a dev dependency before requesting the agent to run tests. The skill relies on the project's existing configuration files (e.g., vitest.config.ts) to determine scope and environment settings.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.