Expected behavior - Question We should be able to spy on Renderer2 methods in any way. Maybe we just didn't find the proper way to achieve it though. Any idea on how to test that using spectator?
There are cases where users need to add and remove DOM elements using Angular's Renderer2. However, when DOM elements are created using Renderer2's .createElement(), it is leaving the traces the DOM ...