To use DOM Testing Library with Angular, we’ll write a custom render function that utilizes the getQueriesForElement function. Here we need to create a test bed testing module which we’ll use to get a native element for our container.
If you like this, checkout Angular Testing Library.