expect-element
JSON →expect-element is an extension for the expect assertion library that provides DOM-specific assertions for testing DOM nodes. Current stable version is 1.1.1, released under the MIT license. It adds assertions like toHaveAttribute, toHaveText, etc. This package is lightweight, requires expect as a peer dependency, and is designed for unit testing in browser or jsdom environments. It is not actively maintained (last release in 2016). Compared to alternatives like jest-dom, expect-element is simpler but lacks TypeScript support and modern updates.
Traffic · last 30 days ↓50% vs prev 7d
total hits 9
actors 3 distinct systems
last hit 4d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · ET