I have a Platform 3.0 app that makes use of modules from Freshdesk and Freshservice.
Here’s my manifest.json file.
I’m trying to improve the test coverage of this app and am not able to invoke the service_ticket events onTicketCreate and onTicketUpdate. The fdk always invokes the callbacks for Freshdesk and there’s no way to change that.
This invokes Freshdesk’s onTicketCreate
callback.
And this also invokes Freshdesk’s onTicketCreate
callback.
Because both the product events in Freshdesk and Freshservice have the same name 'onTicketCreate`.
Here’s a screenshot of the coverage report where the Freshservice product event never gets called.
This is critical to the process of submitting the app for review as a minimum of 80% code coverage is required.
Please help resolve this.
Update
The same app also uses the onConversationCreate and onConversationUpdate product event’s of Freshchat.
When I invoke those methods in the test framework, I get this error message.
It seems like the testing framework does not support platform version 3.0 yet.