Vitest DOM Matchers

JSON →
library 0.1.1 ·javascript
verified May 27, 2026

vitest-dom provides custom Vitest matchers to assert on the state of the DOM, directly forked from `@testing-library/jest-dom`. It shares the same implementation and API, making it a drop-in replacement for existing tests transitioning from Jest to Vitest. The current stable version is `0.1.1`, indicating it's still in its early development stages (pre-1.0.0), which implies that breaking changes could occur in minor or even patch releases before a stable major version is reached. Its primary differentiation is its dedicated support for Vitest environments and types, avoiding potential clashes when trying to use `@testing-library/jest-dom` directly with Vitest.

total hits 15
actors 6 distinct systems
last hit 1d ago MetaBot
GPTBot
5
MetaBot
4
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France