DOM Matchers - Structure

In this first lesson, we'll cover common matchers for asserting HTML content and DOM structure.

These let you verify that rendered components produce the expected content and DOM shape.

Lesson covers:

toBeEmptyDOMElement, toContainElement, toContainHTML, toHaveTextContent

Loading full lesson content & code...

Ready to try running tests for this lesson?