Projekte
Auf GitHub ansehen
porada/awesome-vitest
Über uns
Curated list of awesome Vitest tools and resources
Lernen und BildungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- +4
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalAwesome Vitest
pronounced “veetest” (/ˈviːtɛst/)
Vitest is a next-generation testing framework
with native support for ES Modules,
TypeScript, and JSX.
Official Resources
Guides
Tools
Community
Packages and Tools
Linting
- @vitest/eslint-plugin — The official ESLint plugin.
- oxlint — High-performance linter with built-in Vitest rules.
Mocking
- @async-fn/vitest — Create async mocks with control over when they resolve or reject.
- @fetch-mock/vitest — Mock
fetchrequests with route matching and HTTP-specific assertions. - @suites/doubles.vitest — Automatically mock injected dependencies with Suites.
- aws-sdk-client-mock-vitest — Assert AWS SDK command calls and inputs.
- obsidian-test-mocks — Mock the Obsidian plugin API.
- tomiko — Record and replay LLM API calls, with assertions for tool calls and estimated cost.
- vitest-auto-spy — Create typed spies from classes.
- vitest-canvas-mock — Mock Canvas 2D APIs and snapshot recorded drawing calls.
- vitest-fetch-mock — Mock
fetchrequests and responses. - vitest-mock-extended — Create type-safe mocks from TypeScript interfaces.
- vitest-websocket-mock — Mock WebSocket servers and assert message exchanges.
Reporters
- @ctrl/sentry-tests — Sentry reporter for failed and flaky tests, with execution traces and page captures.
- @flakiness/vitest — Flakiness.io reporter.
- @kinora/vitest-reporter — Kinora reporter with Playwright traces and Storybook integration.
- @mergifyio/vitest — Mergify CI Insights reporter with flaky test detection and quarantine.
- @probara/vitest-reporter — Probara reporter.
- @qualflare/vitest — Qualflare reporter with retry history.
- @testream/vitest-reporter — Testream reporter with Jira integration.
- allure-vitest — Allure reporter with test steps and attachments.
- power-mode-reporter.vitest — Customizable dot reporter with macOS sound notifications.
- vitest-llm-reporter — JSON reporter for LLMs, with compact output, failure context, and streaming progress.
- vitest-md-reporter — Markdown reporter for CI and coding agents.
- vitest-qase-reporter — Qase TestOps reporter.
- vitest-sentry-reporter — Sentry reporter for failed tests.
- vitest-sonar-reporter — SonarQube reporter for test execution results.
- vitest-teamcity-reporter — TeamCity reporter.
- vitest-tesults-reporter — Tesults reporter with local JSON output.
- vitest-time-stats-reporter — Reporter showing test duration distributions and highlighting slow tests.
Snapshot Testing
- @cronn/vitest-file-snapshots — Snapshot data into JSON, text, and Markdown table files.
- path-serializer — Serialize file paths into consistent, cross-platform strings.
- tsnapi — Guard exported APIs against unintended breaking changes.
- vitest-ansi-serializer — Serialize ANSI escape sequences into human-readable strings.
- vitest-directory-snapshot — Snapshot directory trees, including file contents.
- vitest-react-serializer — Serialize React components into formatted HTML.
- vitest-snap — Snapshot data into plain text, JSON, YAML, and Markdown table files, with redaction for structured formats.
- vitest-snapshot-tools — Review snapshot updates in a local UI and selectively apply them.
- vue3-snapshot-serializer — Serialize Vue 3 components into formatted HTML.
Visual Regression Testing
- @argos-ci/vitest — Review changes to browser screenshots and value snapshots in Argos.
- @brachkow/vitest-image-snapshot — Compare PNG snapshots with async matching for concurrent tests.
- @chromatic-com/vitest — Capture DOM snapshots from Browser Mode tests for visual regression testing and review in Chromatic.
- @storycap-testrun/browser — Capture Storybook screenshots with stability checks and per-story controls.
- @uiverify/vitest — Capture DOM snapshots from component tests for hosted visual regression testing.
- v-snap — Snapshot canvas and HTML views in Chromium with controlled fonts and software rendering.
- vitest-image-snapshot — Compare
ImageDataand PNG buffers against baselines, with HTML diff reports. - vitest-pdf-snapshot — Compare rendered PDFs against PNG snapshots.
- vitest-screenshot — Compare canvases and pixel buffers against image baselines in Node.js.
Accessibility Testing
- @accesslint/vitest — Run accessibility tests with AccessLint.
- vi-axe — Run accessibility tests with axe.
- vitest-accessibility-checker — Run accessibility tests in Browser Mode with IBM Equal Access Accessibility Checker.
Coverage
- davelosert/vitest-coverage-report-action — Show coverage changes and link to uncovered lines in pull request comments and workflow summaries.
- nextcov — Collect Playwright E2E coverage for Next.js and Vite apps and merge it with Vitest coverage.
- supercov — Measure per-test coverage, including MC/DC.
- vitest-monocart-coverage — Generate Monocart reports from V8 coverage data, with byte coverage statistics.
Benchmarking
- @codspeed/vitest-plugin — Track benchmark performance and detect slowdowns.
Environments
- @cloudflare/vitest-plugin — Run tests in a Cloudflare Workers runtime.
- @webcontainer/test — Test applications running in StackBlitz WebContainers.
- biloba — Test web apps in Chrome from Node.js, with isolated sessions.
- slicetest — Run API integration tests with real databases, stubbed services, and OpenAPI checks.
- vitecompose — Run integration tests against Docker Compose stacks, with stack reuse and failure diagnostics.
- vitekube — Run Kubernetes integration tests on real clusters with isolated namespaces.
- vitest-environment-happy-dom-extended — Run tests in Happy DOM with real Canvas 2D rendering and extended Web APIs.
- vitest-environment-rsdom — Run tests in
rsdom, a drop-injsdomreplacement accelerated with Rust. - vitest-environment-wasm-quickjs-dom — Run DOM tests with QuickJS running in WebAssembly.
- vitest-environment-web-ext — Test Chrome extensions end to end with Playwright.
- vitest-environment-webgl-node — Run WebGL tests in Node.js without a browser.
- vitest-environment-webgpu-node — Run WebGPU tests in Node.js without a browser.
- vitest-plugin-vscode — Test extensions inside VS Code.
- vitest-pool-quickjs — Run test files in QuickJS through a custom pool.
- vitest-pool-react-native — Run library tests in React Native with Metro and Hermes on iOS and Android.
- warpdom — Run DOM tests with
jsdomcompatibility profiles and optional selective test isolation.
Language Support
- @rezless/vitest — Test Linden Scripting Language scripts with virtual time and mockable APIs.
- rescript-vitest — Write tests in ReScript.
- vitest-bats — Test Bash scripts through BATS.
- vitest-pool-assemblyscript — Run AssemblyScript tests in isolated WASM instances.
Framework and Library Support
- @analogjs/vitest-angular — Test Angular projects with CLI integration and
TestBedsetup. - @augeo/assay — Test Shopify Liquid templates with Vitest Browser Mode.
- @effect/vitest — Test Effect-based code with automatic resource cleanup, shared layers, and a simulated clock.
- @ng-native/testing — Test Angular Native components in Node.js.
- @nuxt/test-utils — Test Nuxt apps with unit and end-to-end helpers.
- @quasar/quasar-app-extension-testing-unit-vitest — Set up unit tests for Quasar apps.
- @stencil/vitest — Test Stencil components in Node.js and Browser Mode.
- @storybook/addon-vitest — Run Storybook stories as component tests in Browser Mode.
- @wojtekmaj/vitest-react-native — Test React Native projects with the framework’s official mocks.
- @workflow/vitest — Test Workflow SDK workflows without a server.
- ember-vitest — Test Ember projects.
- expo-vitest — Test Expo apps with shared APIs for unit and device tests.
- gesso-testing — Test Gesso components without a browser, with semantic queries and layout diagnostics.
- nitro-test-utils — Test Nitro apps with production build support and local Cloudflare bindings.
- vitest-browser-preact — Test Preact components in Browser Mode.
- vitest-browser-three — Test Three.js shader logic on a real GPU.
- vitest-expo — Test Expo apps with SDK-specific mocks and navigation helpers.
- vitest-native — Test React Native components using real framework code with mocked native modules.
- vitest-plugin-rsc — Test React Server Components and Next.js App Router apps in Browser Mode.
Database Testing
- neon-testing — Run tests against isolated Neon Postgres branches.
- vitest-groq — Test GROQ queries and execution plans.
- vitest-mongo — Start MongoDB test instances and expose their connection URI.
- vitest-prisma — Roll back Prisma database changes after each test, with savepoints for nested transactions.
Developer Tool Testing
- @termless/test — Test terminal applications across multiple terminal emulators.
- eslint-vitest-rule-tester — Test ESLint rules and autofixes with snapshots.
- mcp-vitest — Test MCP servers.
Test Utilities
- @logtape/testing-vitest — Report LogTape logs when tests fail.
- standard-matchers — Validate against Standard Schema, with assertions on parsed values.
- vitest-browser-commands — Control input, emulate media, and request garbage collection with Playwright.
- vitest-fail-on-console — Fail tests on unexpected console errors and warnings.
- vitest-plugin-random-seed — Provide a reproducible seed for random test data generators.
- vitest-testdirs — Run tests against isolated directory fixtures.
Test Documentation
- @describe-me/vitest — Generate React component documentation from existing tests.
- @effect/doctest — Turn TypeScript snippets from JSDoc, Markdown, and MDX into runnable tests.
- executable-stories-vitest — Write
Given/When/Thenstories in tests and generate documentation.
Test Design
- @amiceli/vitest-cucumber — Run Gherkin scenarios and detect missing steps.
- @botpress/vai — Evaluate output with LLM assertions, ratings, and structured extraction.
- @contract-case/contract-case-vitest — Define and verify consumer-driven contracts for HTTP interactions and function calls.
- @epure/vitest — Run Gherkin scenarios and structured YAML fixtures as tests.
- @fast-check/vitest — Find edge cases with property-based testing and simplify failing inputs.
- @harnessed-ts/dom — Test components through reusable harnesses with Testing Library.
- eutaxy — Test Cloudflare Workers and AWS Lambda with deterministic simulation, fault injection, and invariant checks.
- feat2test — Generate TypeScript tests from Gherkin and keep editable step adapters in sync.
- storyspec — Link Markdown specifications to typed scenario tests and enforce traceability and architecture rules.
- vitest-evals — Evaluate AI applications with LLM judges, tool call assertions, and score reports.
- vitiate — Find bugs with fuzz testing and replay failing inputs as regression tests.
Test Execution
- @djankies/vitest-mcp — Run tests through MCP with structured results and coverage analysis.
- @knapsack-pro/vitest — Dynamically distribute tests across CI nodes using Knapsack Pro.
- @liveapp/dvitest — Queue test runs across projects and optionally run them on remote machines.
- @nx/vitest — Run tests in Nx workspaces, with inferred tasks and CI splitting by test file.
- @vitejs/devtools-vitest — Run and watch tests from Vite DevTools.
- neotest-vitest — Run and debug tests in Neovim through Neotest.
- testlanes — Balance test shards in GitHub Actions using automatically collected timing history.
- vitest-pool-fastforks — Reduce test startup overhead with reused child processes and a fresh Node.js environment for each file.
Test Selection
- @goodfoot/vitest-cache — Cache passing test results by input content, with reuse across Git worktrees.
- bivium — Select affected tests before installing project dependencies.
- tracegate-ci — Validate test selection against full runs before skipping tests in local CI, then spot-check the skips.
- vitest-affected — Select affected tests using a persistent runtime dependency graph.
- vitest-git-trigger-patterns — Map changed files to specific tests during
--changedruns.
Test Analysis
- @mizchi/mutator — Find gaps in tests through mutation testing, with Git diff filtering and cached results.
- @stryker-mutator/vitest-runner — Measure test effectiveness with Stryker mutation testing.
- oxmutate — Find test gaps with mutation testing and formal model oracles.
- saidvsdid — Detect deleted, skipped, or weakened tests and test configuration changes in pull requests.
- targeted-mutation — Find missing test inputs and assertions with mutations based on observed values.
- test-inventory — Extract test metadata from source, including tags, skip conditions, and skip reasons.
- vitest-dedup — Find duplicate and near-duplicate tests through static analysis.
- vitest-flaky — Find flaky tests locally by varying timer delays and test order, with seeds for replay.
Agent Skills
- antfu/skills — Collection of agent skills by Anthony Fu, including Vitest.
Awesome Vitest is curated by Dom Porada.
Licensed under CC0-1.0.
Ähnliche Projekte entdecken
Wird geladen…