12/09/2017, 10:21 AM
Hi, I'm experimenting with kotlin multiproject. There is something that it's not clear to me. My goal is to port a node js project, a simple one ( ). The idea is to begin with the porting, isolate common code and repository interfaces on the common project, and then create the jvm version using
( The goal is to have two running bots, the js and the kotlin one with one common business logic. I hope it's all clear up to this point. Now the question: for testing, on the node js I used jest + nock. Now I would see, as an advantage, the fact that I can use a java/kotlin mock library (I want to mock the telegram API) inside kotlin test. Of course the library that I will use to implement the bot is a javascript library. So, basically, can I implement my telegram bot in kotlin, using telegram bot js library, and testing it with, as an example, OkHttp MockWebServer?

Carl Hickman

12/09/2017, 7:50 PM
Maybe try asking on the #multiplatform or #javascript channel