I have an input and output, say tags and tagsChange in a component. When I am testing some function with @HostListener that emits tagsChange, the tags changes as well. This caught me off guard. Tested function without @HostListener does not behave like this.
Is Angular handling it on the background of @HostListener? Can I achieve this somehow for methods without @HostListener as that would make the test easier?