{"library":"expect-element","type":"library","category":null,"description":"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.","language":"javascript","status":"maintenance","version":"1.1.1","tags":["javascript","expect","assert","test","spec","dom"],"last_verified":"Fri May 01","install":[{"cmd":"npm install expect-element","imports":["import expectElement from 'expect-element'","import expect from 'expect'","const expectElement = window.expectElement"]},{"cmd":"yarn add expect-element","imports":[]},{"cmd":"pnpm add expect-element","imports":[]}],"homepage":null,"github":"https://github.com/mjackson/expect-element","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/expect-element","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}