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