npm install --save-dev --save-exact pretty-format@24.0.0- copy
DOMElementNoClassIdSnapshotSerializer.jsto your project folder - add
'./DOMElementNoClassIdSnapshotSerializer.js'tosnapshotSerializersin your jest config
Angular does create HTML for components like this:
<h1 class="ng-tns-c1-0">
app works!