返回 Skill 列表
extension
分类: 开发与工程无需 API Key

openwebf-app-testing-vitest

设置并改进使用Vitest和React Testing Library的WebF应用程序测试。当用户提到Vitest、React Testing Library、单元测试、组件测试、“测试奖杯”,或要求在Vite/React/TS WebF应用程序中添加/修复测试时使用。

person作者: jakexiaohubgithub

OpenWebF App: Testing (Vitest + React Testing Library)

Instructions

  1. Identify the stack (React/Vue/etc.) and current test tooling (if any).
  2. Use MCP docs for the recommended testing approach and best practices.
  3. Prefer “testing trophy” prioritization:
    • unit tests for business logic
    • component tests for UI behavior
    • minimal integration/E2E only where needed
  4. Offer templates when appropriate:
    • app/vitest-config
    • app/react-testing-library-example

More: