I have a Kotlin JavaScript project in IntelliJ (Ultimate). I want to be able to write tests for this project.
I have tried a number of different things ranging from writing tests with Spek (this would be ideal) to writing them in Karma/Jasmine. The problem with Spek is that I could not get it to work with a JavaScript project. It complains about some jars not being a JavaScript library.
The problem with Karma/Jasmine is that I couldn't figure out how to get the test runner to pick up the tests from my Kotlin test output. When the tests are written in plain JavaScript, they can't access my Kotlin objects because I don't know how to reference them correctly with all of the name mangling that occurs when you do Kotlin to JavaScript compilation.
I'm open to anything at the moment, since this is an Angular project, I can probably figure out how to do end-to-end testing with Protractor, though I would really prefer some unit test coverage.