I have some problem with a simple issue in my unit tests for an Ionic 4 project using Cordova. Somewhere in my tests, I have to subscribe to the Android back button :
And I’d like have a 100% code coverage on my project, so I must find a way to trigger the backButton event, but I don’t find any solution yet. Do you have any idea ?
I said something totally wrong and just realized right now. I have to subscribe to the Android back button event in my code but I don’t don’t know how to trigger it in my unit tests.