While I agree that vanilla Angular testing is needlessly cumbersome, there are libraries which solve this issue. For example, I use shallow-render in all my component tests which gets rid of all the boilerplate. Would highly recommend to all Angular devs.
While I agree that vanilla Angular testing is needlessly cumbersome, there are libraries which solve this issue. For example, I use shallow-render in all my component tests which gets rid of all the boilerplate. Would highly recommend to all Angular devs.
We don’t usually do any DOM testing at all but use fast unit tests with jest. Instead we use Cypress for anything visual.