Community编程与开发github.com

pproenca/vitest

Vitest 测试框架模式,涵盖测试设置、异步测试、vi.* 模拟、快照及测试性能(原 test-vitest)。适用于编写或调试 Vitest 测试,但不包含 TDD 方法论、MSW API 模拟或 Jest 特定 API。

vitest 是什么?

此技能提供 Vitest 测试框架的完整模式支持,包括测试环境配置、异步测试处理、使用 vi.* API 进行模拟、快照测试以及测试性能优化。它旨在帮助开发者高效编写和调试基于 Vitest 的测试用例。该技能适用于所有支持 Vitest 的 AI 编码代理,如 Claude Code、Cursor 或 Codex。它明确不涵盖 TDD 方法论(请使用 test-tdd 技能)、MSW 的 API 模拟(请使用 test-msw 技能)以及 Jest 特定的 API,以确保专注于 Vitest 的核心功能。通过清晰的模式划分和参数化建议,该技能可提升测试的可靠性和可维护性。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pproenca/dot-skills/tree/main/skills/vitest

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

vitest 是做什么的?

Vitest 测试框架模式,涵盖测试设置、异步测试、使用 vi.* 进行模拟、快照及测试性能(原 test-vitest)。此技能应在编写或调试 Vitest 测试时使用。此技能不包含 TDD 方法论(请使用 test-tdd 技能)、MSW 的 API 模拟(请使用 test-msw 技能)或 Jest 特定 API。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

pproenca/clean-architecture

Clean Architecture principles and best practices from Robert C. Martin's book. This skill should be used when designing software systems, reviewing code structure, or refactoring applications to achieve better separation of concerns. Triggers on tasks involving layers, boundaries, dependency direction, entities, use cases, or system architecture.

pproenca/code-simplifier

Code simplification skill for improving clarity, consistency, and maintainability while preserving exact behavior. Use when simplifying code, reducing complexity, cleaning up recent changes, applying refactoring patterns, or improving readability. Triggers on tasks involving code cleanup, simplification, refactoring, or readability improvements.

pproenca/emilkowal-animations

Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion.

pproenca/nuqs

nuqs (type-safe URL query state) best practices for Next.js and other React frameworks. This skill should be used when writing, reviewing, or refactoring code that uses nuqs for URL state management. Triggers on tasks involving useQueryState, useQueryStates, search params, URL state, query parameters, nuqs parsers, limitUrlUpdates, Standard Schema, NuqsAdapter, or Next.js routing with state.

pproenca/react-hook-form

React Hook Form performance optimization for client-side form validation using useForm, useWatch, useController, useFieldArray, and the v7.55+ subscribe() API. This skill should be used when building client-side controlled forms with React Hook Form library. This skill does NOT cover React 19 Server Actions, useActionState, or server-side form handling (use react-19 skill for those).

pproenca/typescript

TypeScript performance, tsconfig, type errors, async patterns — triggered when the user asks to "optimize TypeScript performance", "speed up tsc compilation", "configure tsconfig.json", "fix type errors", "improve async patterns", or encounters TS errors (TS2322, TS2339, "is not assignable to"). Also triggers on .ts, .tsx, .d.ts file work involving type definitions, module organization, or memory management. Does NOT cover TypeScript basics, framework-specific patterns, or testing.

pproenca/zod

Zod schema validation best practices for type safety, parsing, and error handling. This skill should be used when defining z.object schemas, using z.string validations, safeParse, or z.infer. This skill does NOT cover React Hook Form integration patterns (use react-hook-form skill) or OpenAPI client generation (use orval skill).

相关技能