Vitest — certificate-authority Vitest, pki-manager-web, community, certificate-authority, ide skills, certificate-management, cosmian, fastify, pki-manager, typescript

v1.0.0

이 스킬 정보

빠르고 효율적인 단위 테스트 및 즉각적인 피드백과 AI 기반 테스트 기능이 필요한 JavaScript 에이전트에게 완벽합니다. Expert guidance for Vitest testing framework including unit tests, integration tests, mocking, coverage, React Testing Library integration, and TypeScript testing. Use this when writing tests for Vite-based applications.

# Core Topics

oriolrius oriolrius
[7]
[2]
Updated: 3/12/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 7/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
7/11
Quality Score
33
Canonical Locale
en
Detected Body Locale
en

빠르고 효율적인 단위 테스트 및 즉각적인 피드백과 AI 기반 테스트 기능이 필요한 JavaScript 에이전트에게 완벽합니다. Expert guidance for Vitest testing framework including unit tests, integration tests, mocking, coverage, React Testing Library integration, and TypeScript testing. Use this when writing tests for Vite-based applications.

이 스킬을 사용하는 이유

에이전트가 Vitest를 사용하여 cựcめて 빠른 단위 테스트를 작성할 수 있는 능력을 부여하며, Jest 호환 API, 1급 TypeScript 지원 및 v8/istanbul을 통한 내장 커버리지 제공과 함께 테스트 결과를 위한 아름다운 UI를 제공합니다.

최적의 용도

빠르고 효율적인 단위 테스트 및 즉각적인 피드백과 AI 기반 테스트 기능이 필요한 JavaScript 에이전트에게 완벽합니다.

실행 가능한 사용 사례 for Vitest

에이전트가 @testing-library/react를 사용하여 React 애플리케이션의 단위 테스트를 자동화하는 경우
v8/istanbul을 사용하여 테스트 커버리지 보고서를 생성하는 경우
Vitest의 HMR을 사용하여 즉각적인 피드백을 얻어 JavaScript 코드를 디버깅하는 경우

! 보안 및 제한 사항

  • Vite 네이티브 환경이 필요합니다
  • Jest 비호환 테스트 프레임워크와의 호환성 문제
  • @vitest/ui 및 @testing-library/react에 대한 추가 설정이 필요합니다

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

After The Review

Decide The Next Action Before You Keep Reading Repository Material

Killer-Skills should not stop at opening repository instructions. It should help you decide whether to install this skill, when to cross-check against trusted collections, and when to move into workflow rollout.

Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is Vitest?

빠르고 효율적인 단위 테스트 및 즉각적인 피드백과 AI 기반 테스트 기능이 필요한 JavaScript 에이전트에게 완벽합니다. Expert guidance for Vitest testing framework including unit tests, integration tests, mocking, coverage, React Testing Library integration, and TypeScript testing. Use this when writing tests for Vite-based applications.

How do I install Vitest?

Run the command: npx killer-skills add oriolrius/pki-manager-web/Vitest. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for Vitest?

Key use cases include: 에이전트가 @testing-library/react를 사용하여 React 애플리케이션의 단위 테스트를 자동화하는 경우, v8/istanbul을 사용하여 테스트 커버리지 보고서를 생성하는 경우, Vitest의 HMR을 사용하여 즉각적인 피드백을 얻어 JavaScript 코드를 디버깅하는 경우.

Which IDEs are compatible with Vitest?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for Vitest?

Vite 네이티브 환경이 필요합니다. Jest 비호환 테스트 프레임워크와의 호환성 문제. @vitest/ui 및 @testing-library/react에 대한 추가 설정이 필요합니다.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add oriolrius/pki-manager-web/Vitest. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use Vitest immediately in the current project.

! Reference-Only Mode

This page remains useful for installation and reference, but Killer-Skills no longer treats it as a primary indexable landing page. Read the review above before relying on the upstream repository instructions.

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

Vitest

Install Vitest, an AI agent skill for AI agent workflows and automation. Review the use cases, limitations, and setup path before rollout.

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Vitest

Expert assistance with Vitest - Blazing fast unit test framework.

Overview

Vitest is a Vite-native testing framework:

  • Fast: Powered by Vite, instant HMR
  • Compatible: Jest-compatible API
  • TypeScript: First-class TypeScript support
  • Coverage: Built-in coverage with v8/istanbul
  • UI: Beautiful UI for test results

Installation

bash
1npm install --save-dev vitest 2npm install --save-dev @vitest/ui 3npm install --save-dev @testing-library/react @testing-library/jest-dom

Configuration

typescript
1// vitest.config.ts 2import { defineConfig } from 'vitest/config'; 3import react from '@vitejs/plugin-react'; 4 5export default defineConfig({ 6 plugins: [react()], 7 test: { 8 globals: true, 9 environment: 'jsdom', 10 setupFiles: './src/test/setup.ts', 11 coverage: { 12 provider: 'v8', 13 reporter: ['text', 'html', 'json'], 14 }, 15 }, 16});

Setup File

typescript
1// src/test/setup.ts 2import { expect, afterEach } from 'vitest'; 3import { cleanup } from '@testing-library/react'; 4import * as matchers from '@testing-library/jest-dom/matchers'; 5 6expect.extend(matchers); 7 8afterEach(() => { 9 cleanup(); 10});

Basic Tests

typescript
1import { describe, it, expect } from 'vitest'; 2 3describe('Math functions', () => { 4 it('adds numbers', () => { 5 expect(1 + 1).toBe(2); 6 }); 7 8 it('multiplies numbers', () => { 9 const result = 2 * 3; 10 expect(result).toEqual(6); 11 }); 12});

Testing React Components

typescript
1import { render, screen } from '@testing-library/react'; 2import { describe, it, expect } from 'vitest'; 3import { Button } from './Button'; 4 5describe('Button', () => { 6 it('renders with text', () => { 7 render(<Button>Click me</Button>); 8 expect(screen.getByText('Click me')).toBeInTheDocument(); 9 }); 10 11 it('handles click events', async () => { 12 const handleClick = vi.fn(); 13 render(<Button onClick={handleClick}>Click</Button>); 14 15 await userEvent.click(screen.getByText('Click')); 16 expect(handleClick).toHaveBeenCalledOnce(); 17 }); 18});

Mocking

typescript
1import { vi } from 'vitest'; 2 3// Mock function 4const mockFn = vi.fn(); 5mockFn('hello'); 6expect(mockFn).toHaveBeenCalledWith('hello'); 7 8// Mock return value 9const mockFn = vi.fn().mockReturnValue(42); 10expect(mockFn()).toBe(42); 11 12// Mock async function 13const mockFn = vi.fn().mockResolvedValue('data'); 14const result = await mockFn(); 15expect(result).toBe('data'); 16 17// Mock module 18vi.mock('./api', () => ({ 19 fetchCertificate: vi.fn().mockResolvedValue({ id: '1', subject: 'CN=test' }), 20}));

Best Practices

  1. Describe Blocks: Group related tests
  2. Clear Names: Write descriptive test names
  3. AAA Pattern: Arrange, Act, Assert
  4. One Assertion: Test one thing at a time
  5. Mock External: Mock external dependencies
  6. Coverage: Aim for high coverage
  7. Fast Tests: Keep tests fast
  8. Isolation: Tests should be independent
  9. User Events: Use userEvent over fireEvent
  10. Accessibility: Test with accessible queries

Resources

관련 스킬

Looking for an alternative to Vitest or another community skill for your workflow? Explore these related open-source skills.

모두 보기

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
인공지능

widget-generator

Logo of f
f

prompts.chat 피드 시스템을 위한 사용자 지정 가능한 위젯 플러그인을 생성합니다

149.6k
0
인공지능

flags

Logo of vercel
vercel

리액트 프레임워크

138.4k
0
브라우저

pr-review

Logo of pytorch
pytorch

파이썬에서 텐서와 동적 신경망 구현 및 강력한 GPU 가속 지원

98.6k
0
개발자