跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Vitest

技能 已验证 活跃

Vitest - Modern TypeScript testing framework with Vite-native performance, ESM support, and TypeScript-first design

目的

To equip users with the knowledge and examples needed to effectively set up and utilize Vitest for fast, TypeScript-first testing in modern JavaScript/TypeScript projects.

功能

  • Vitest setup and configuration
  • TypeScript-first testing patterns
  • Mocking and spying with vi
  • React and Vue component testing integration
  • Async testing and promise handling
  • Snapshot testing capabilities
  • Coverage reporting with v8
  • Migration guide from Jest
  • Advanced testing patterns (concurrent, context, custom matchers)

使用场景

  • Testing TypeScript/JavaScript projects with Vitest
  • Setting up Vitest for React and Vue component testing
  • Migrating existing Jest test suites to Vitest
  • Implementing fast and efficient unit and integration tests
  • Configuring code coverage reports

非目标

  • Providing a testing framework itself
  • Replacing Vitest with direct CLI commands
  • Covering every possible edge case of every JavaScript/TypeScript library

Trust

  • info:Issues AttentionOpen issues: 4, Closed issues (last 90d): 0. The closure rate is 0%, and the number of open issues is relatively low, suggesting maintenance is active but issues may not be addressed quickly.

安装

npx skills add bobmatnyc/claude-mpm-skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
97 /100
1 day ago 分析

信任信号

最近提交29 days ago
星标44
许可证MIT
状态
查看源代码

类似扩展

Vue Testing Best Practices

100

Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

技能
hyf0

Setup Tailwind Typescript

100

Configure Tailwind CSS with TypeScript in a Next.js or React project. Covers installation, configuration, custom theme extensions, component patterns, and type-safe styling utilities. Use when adding Tailwind CSS to an existing TypeScript project, customizing the Tailwind theme for a project's design system, setting up type-safe component styling patterns, or configuring Tailwind plugins and extensions.

技能
pjt222

Sentry React Router Framework Sdk

100

Full Sentry SDK setup for React Router Framework mode. Use when asked to "add Sentry to React Router Framework", "install @sentry/react-router", or configure error monitoring, tracing, profiling, session replay, logs, or user feedback for a React Router v7 framework app.

技能
getsentry

Testing Clickup Cli

100

运行和管理 clickup-cli 的测试。涵盖单元测试、针对真实 ClickUp 工作区的端到端测试以及测试数据设置。在运行测试、添加测试覆盖率、调试测试失败或设置测试夹具时使用。

技能
krodak

Playwright Best Practices

100

用于编写 Playwright 测试、修复不稳定测试、调试失败、实现页面对象模型 (Page Object Model)、配置 CI/CD、优化性能、模拟 API、处理身份验证或 OAuth、测试可访问性 (axe-core)、文件上传/下载、日期/时间模拟、WebSockets、地理定位、权限、多标签/弹出窗口流程、移动/响应式布局、触摸手势、GraphQL、错误处理、离线模式、多人协作、第三方服务(付款、电子邮件验证)、控制台错误监控、全局设置/拆卸、测试注解(skip, fixme, slow)、测试标签(@smoke, @fast, @critical, 使用 --grep 过滤)、项目依赖项、安全测试(XSS, CSRF, 身份验证)、性能预算(Web Vitals, Lighthouse)、iframe、组件测试、canvas/WebGL、服务工作线程/PWA、测试覆盖率、i18n/本地化、Electron 应用或浏览器扩展测试。涵盖 E2E、组件、API、视觉、可访问性、安全、Electron 和扩展测试。

技能
currents-dev

Senior Backend Engineer

100

Designs and implements backend systems including REST APIs, microservices, database architectures, authentication flows, and security hardening. Use when the user asks to "design REST APIs", "optimize database queries", "implement authentication", "build microservices", "review backend code", "set up GraphQL", "handle database migrations", or "load test APIs". Covers Node.js/Express/Fastify development, PostgreSQL optimization, API security, and backend architecture patterns.

技能
alirezarezvani