ngMocks.output
Returns an emitter of an output
of an element.
It avoids the issue of knowing the name of a component / directive the output belongs to.
ngMocks.output( debugElement, output, notFoundValue? )
or simply with selectors which are supported by ngMocks.find
.
ngMocks.output( cssSelector, output, notFoundValue? )
const outputEmitter = ngMocks.output(debugElement, 'update');
const outputEmitter = ngMocks.output('app-component', 'update');