vitest

tarafından antfu

Vite tarafından desteklenen, Jest uyumlu API'ye sahip hızlı birim test çerçevesi. Test yazarken, mock'lama yaparken, kapsam yapılandırırken veya test filtreleme ve fixture'lar ile çalışırken kullanın.

npx skills add https://github.com/antfu/skills --skill vitest

Vitest is a next-generation testing framework powered by Vite. It provides a Jest-compatible API with native ESM, TypeScript, and JSX support out of the box. Vitest shares the same config, transformers, resolvers, and plugins with your Vite app.

Key Features:

  • Vite-native: Uses Vite's transformation pipeline for fast HMR-like test updates
  • Jest-compatible: Drop-in replacement for most Jest test suites
  • Smart watch mode: Only reruns affected tests based on module graph
  • Native ESM, TypeScript, JSX support without configuration
  • Multi-threaded workers for parallel test execution
  • Built-in coverage via V8 or Istanbul
  • Snapshot testing, mocking, and spy utilities

The skill is based on Vitest 5.0.1, generated at 2026-09-25.

Core

TopicDescriptionReference
ConfigurationVitest and Vite config integration, defineConfig usagecore-config
CLICommand line interface, commands and optionscore-cli
Test APItest/it function, modifiers like skip, only, concurrentcore-test-api
Describe APIdescribe/suite for grouping tests and nested suitescore-describe
Expect APIAssertions with toBe, toEqual, matchers and asymmetric matcherscore-expect
HooksbeforeEach, afterEach, beforeAll, afterAll, aroundEachcore-hooks

Features

TopicDescriptionReference
MockingMock functions, modules, timers, dates with vi utilitiesfeatures-mocking
SnapshotsSnapshot testing with toMatchSnapshot and inline snapshotsfeatures-snapshots
CoverageCode coverage with V8 or Istanbul providersfeatures-coverage
Test ContextTest fixtures, context.expect, test.extend for custom fixturesfeatures-context
ConcurrencyConcurrent tests, parallel execution, shardingfeatures-concurrency
FilteringFilter tests by name, file patterns, tagsfeatures-filtering
Test TagsLabel tests with tags to filter runs and apply shared optionsfeatures-test-tags
ReportersBuilt-in reporters, default selection, CI/output configfeatures-reporters
BenchmarkingWrite benchmarks with the bench fixture (Tinybench)features-benchmarking

Advanced

TopicDescriptionReference
Vi Utilitiesvi helper: mock, spyOn, fake timers, hoisted, waitForadvanced-vi
EnvironmentsTest environments: node, jsdom, happy-dom, customadvanced-environments
Type TestingType-level testing with expectTypeOf and assertTypeadvanced-type-testing
ProjectsMulti-project workspaces, different configs per projectadvanced-projects

İlgili Skills

rivet-dynamic-apps
rivet-dev
Dynamic Apps: Her kullanıcı için AI tarafından oluşturulan bir backend dağıtın.
openspec-onboard
rivet-dev
OpenSpec için rehberli başlangıç - anlatım ve gerçek kod tabanı çalışmasıyla tam bir iş akışı döngüsü boyunca ilerleyin.
azure-cloud-migrate
microsoft
AWS, GCP ve diğer sağlayıcılardan bulut iş yüklerini Azure hizmetlerine değerlendirin ve taşıyın. Özel senaryo referansı ve en iyi uygulamalarla Lambda'dan Azure Functions'a geçişi destekler. Herhangi bir kod dönüşümünden önce kaynak hizmetleri Azure karşılıklarıyla eşleyen değerlendirme raporları oluşturur. Kaynak kodu hedef Azure çalışma zamanı modellerine dönüştürür ve çıktıyı ayrı bir <source-folder>-azure/ dizininde izole eder. Sıralı aşama yürütmesi gerektirir: önce değerlendirme, sonra geçiş, kullanıcı...
amc-run-rtsp-calibration
nvidia
AutoMagicCalib REST API üzerinden canlı RTSP kamera akışlarından yeni bir veri kümesini kalibre edin. Kullanıcı RTSP URL'leri sağladığında veya canlı kameraları kalibre etmesini istediğinde kullanın;…
add-teams
microsoft
Bir Power Apps kod uygulamasına Microsoft Teams bağlayıcısı ekler. Teams mesajları gönderirken, kanallara gönderi yaparken veya Teams sohbetiyle entegre olurken kullanın.
signals-scout-csp-violations
posthog
Signals scout for Content Security Policy violation reports. Watches `$csp_violation` events for blocked-URL clusters, per-directive bursts, post-deploy…
golang-continuous-integration
samber
CI/CD boru hattı yapılandırması, GitHub Actions kullanarak Golang projeleri için — test, lint, SAST, güvenlik taraması, kod kapsamı, Dependabot, Renovate, GoReleaser, kod inceleme otomasyonu ve sürüm boru hatları. Go projesi CI kurulumu veya iyileştirmesi yaparken, GitHub Actions iş akışları yapılandırırken, lint veya güvenlik tarayıcıları eklerken, bağımlılık güncellemelerini otomatikleştirirken veya kalite kapıları eklerken kullanın.
developmentdevopstesting
apify-competitor-intelligence
apify
Google Maps, Booking.com, Facebook, Instagram, YouTube ve TikTok üzerinden rakip stratejilerini, içeriklerini, fiyatlandırmalarını, reklamlarını ve pazar konumlandırmalarını analiz edin.