angularjs-jest-serializer This is a serializer for compile AngularJS templates with components scope for generate snapshots for testing. Install it npm install --save-dev angularjs-jest-serializer Add it to your jest config "jest": { "snapshotSerializers": ["angularjs-jest-serializer"]}