Logo Awesome React

Awesome React

DOM MutationObservers and dom-testing-library's waitForElement

  • Details
dom-testing-library has a waitForElement method that enables some pretty neat testing practices. Under the hood it uses a MutationObserver. Let's learn how this all works!