feat: update toBeInTheDOM by smacpherson64 · Pull Request #25 · testing-library/jest-dom (original) (raw)

What:
In efforts to implement #3 : added .toContainElement and updated .toBeInTheDOM to allow containers.

Why:
The efforts were to implement the desired items from #3

How:
Added a to-contain-element.js functionality
Updated to-be-in-the-dom.js functionality to have an optional container.

Checklist:

After working on this, it might be easier to reason about the tests if they were in separate files.