- `@testing-library/dom` version: 8.11.2 ### Problem description: [There is currently no exception catching for the initial call inside `waitForElementToBeRemoved`](https://github.com/testing-library/dom-testing-library/blob/d578c7ea285d16609a09a96081055a49997938bc/src/wait-for-element-to-be-removed.js#L30). When that call of `callback` throws, instead of getting the error `Error('The element(s) given to waitForElementToBeRemoved are already removed...')` we will get the error thrown from the callback, even when it is a `TestingLibraryElementError`. This contradicts [the documented behavior](https://testing-library.com/docs/dom-testing-library/api-async/#waitforelementtoberemoved): ```js waitForElementToBeRemoved(() => getByText(/not here/i)).catch(err => console.log(err), ) // Error: The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal. ``` ### Suggested solution: See #1094.