I have developed a unique Queue manager that utilizes RxJs observables to execute tasks sequentially. Now, I am facing the challenge of testing this functionality as all the methods I need to test are private.
The public interface of my Queue manager consists of only two methods that create an observable and add it to the queue.
When attempting to use
spyOn(myService, 'privateMethod')
, PhpStorm analysis indicates that it is not compatible with the type (and points to public methods).
I cannot simply refactor the code to make these methods public, as the underlying logic is intricate and should not be accessed from the outside.