vitest이란?
React Testing Library를 사용한 Vitest 단위 테스트 패턴. 트리거: React 구성 요소, 후크 또는 유틸리티에 대한 단위 테스트를 작성할 때. 출처: prowler-cloud/prowler.
React Testing Library를 사용한 Vitest 단위 테스트 패턴. 트리거: React 구성 요소, 후크 또는 유틸리티에 대한 단위 테스트를 작성할 때.
명령줄에서 vitest AI 스킬을 개발 환경에 빠르게 설치
출처: prowler-cloud/prowler.
For E2E tests: Use prowler-test-ui skill (Playwright). This skill covers unit/integration tests with Vitest + React Testing Library.
| 1 | getByRole | Buttons, inputs, headings | | 2 | getByLabelText | Form fields | | 3 | getByPlaceholderText | Inputs without label | | 4 | getByText | Static text | | 5 | getByTestId | Last resort only |
| vi.spyOn | Observe without replacing (PREFERRED) | | vi.mock | Replace entire module (use sparingly) |
React Testing Library를 사용한 Vitest 단위 테스트 패턴. 트리거: React 구성 요소, 후크 또는 유틸리티에 대한 단위 테스트를 작성할 때. 출처: prowler-cloud/prowler.
AI/검색 인용용 안정적인 필드와 명령어.
npx skills add https://github.com/prowler-cloud/prowler --skill vitestReact Testing Library를 사용한 Vitest 단위 테스트 패턴. 트리거: React 구성 요소, 후크 또는 유틸리티에 대한 단위 테스트를 작성할 때. 출처: prowler-cloud/prowler.
터미널 또는 명령줄 도구(Terminal, iTerm, Windows Terminal 등)를 엽니다 이 명령어를 복사하여 실행합니다: npx skills add https://github.com/prowler-cloud/prowler --skill vitest 설치 후 스킬은 자동으로 AI 코딩 환경에 설정되어 Claude Code, Cursor, OpenClaw에서 사용할 수 있습니다
https://github.com/prowler-cloud/prowler