Jest DOM (for DOM assertions via @testing-library/jest-dom)

E696506

Jest DOM is a companion library for Jest that provides convenient, human-readable DOM-specific assertion matchers commonly used with React Testing Library and other @testing-library tools.

All labels observed (3)

How this entity was disambiguated

Statements (51)

Predicate Object
instanceOf DOM assertion library
JavaScript testing library
Jest companion library
open-source software
category frontend testing
testing
unit testing
configuration can be added in Jest setupFilesAfterEnv
distributedAs npm package
documentation https://testing-library.com/docs/ecosystem-jest-dom
ecosystem Testing Library
extends expect
goal encourage testing from the user perspective
improve test readability
provide human-readable DOM assertions
hostedOn GitHub
importStyle import '@testing-library/jest-dom';
integratesWith Jest expect API
language JavaScript
license MIT License
maintainedBy Testing Library maintainers
matcher .toBeDisabled
.toBeEmptyDOMElement
.toBeEnabled
.toBeVisible
.toContainElement
.toContainHTML
.toHaveAccessibleDescription
.toHaveAccessibleName
.toHaveAttribute
.toHaveClass
.toHaveDisplayValue
.toHaveFocus
.toHaveFormValues
.toHaveStyle
.toHaveTextContent
.toHaveValue
matcher .toBeInTheDocument
npmPackageName @testing-library/jest-dom
providedBy @testing-library/jest-dom
repository https://github.com/testing-library/jest-dom
runsOn Node.js
supports DOM-specific assertions
TypeScript type definitions
custom Jest matchers
usedWith @testing-library/angular
@testing-library/dom
@testing-library/react
@testing-library/vue
Jest
React Testing Library

How these facts were elicited

Referenced by (4)

Full triples — surface form annotated when it differs from this entity's canonical label.

Jest ecosystem Jest DOM (for DOM assertions via @testing-library/jest-dom)
Jest DOM providedBy @testing-library/jest-dom
linked to: Jest DOM (for DOM assertions via @testing-library/jest-dom)
Jest DOM npmPackageName @testing-library/jest-dom
linked to: Jest DOM (for DOM assertions via @testing-library/jest-dom)
Jest DOM matcher .toHaveAccessibleDescription
linked to: Jest DOM (for DOM assertions via @testing-library/jest-dom)