Vitest
Official supabase skill covering Supabase, Vitest for working with databases and data persistence.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add supabase-vitest npx -- -y @trustedskills/supabase-vitest
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"supabase-vitest": {
"command": "npx",
"args": [
"-y",
"@trustedskills/supabase-vitest"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides access to Vitest, a testing framework designed as a drop-in replacement for Jest. It leverages Vite's transformation pipeline for fast test updates and offers features like smart watch mode, native support for ESM, TypeScript, and JSX, all without requiring complex configuration. Vitest is particularly useful for projects already using Vite due to its seamless integration with existing configurations, transformers, resolvers, and plugins.
When to use it
- Testing JavaScript or TypeScript codebases that utilize Vite as a build tool.
- Migrating from Jest to Vitest for faster test execution and improved developer experience.
- Developing projects requiring native ESM, TypeScript, or JSX support in tests.
- Running automated tests with parallel execution using multi-threaded workers.
- Generating code coverage reports using V8 or Istanbul providers.
Key capabilities
- Vite-native: Fast test updates leveraging Vite's transformation pipeline.
- Jest-compatible API: Easy migration from existing Jest test suites.
- Smart watch mode: Only reruns affected tests based on module dependencies.
- Native ESM, TypeScript, and JSX support: No extra configuration needed.
- Multi-threaded workers: Parallel test execution for faster results.
- Snapshot testing: Compare snapshots of component output over time.
- Mocking utilities: Mock functions, modules, timers, and dates.
- Coverage reporting: Generate code coverage reports using V8 or Istanbul.
Example prompts
- "Run all tests in the
srcdirectory." - "Execute only the tests matching the pattern
*.test.ts." - "Generate a code coverage report for the project."
- "Run the test suite and display results with concurrency enabled."
Tips & gotchas
- This skill is based on Vitest 3.x, so ensure compatibility with your existing codebase.
- Vitest integrates seamlessly with Vite configurations; leverage existing
vite.config.jsor similar files for optimal setup. - The skill supports various testing environments including node, jsdom, and happy-dom.
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 |
🏢 Official
Published by the company or team that built the technology.