afternoon/evening(/morning?) guys, what's the quic...
# javascript
c
afternoon/evening(/morning?) guys, what's the quickest way to get the ability to run Kotlinjs unit tests inside intelli J?
Been able to follow Dmitry's instructions from kotlinconf 2017 and got node + mocha set up and the tests trying to execute in the IDE, but I'm getting
Error: Cannot find module 'kotlin'
j
Sounds like you need the kotlin npm package added to your build? It has the kotlin stdlib and such
c
so! I had a project from way back when I was breathing life back into; previously I had a ghetto setup with a test.html file with qunit etc so I could build my kotlin->js and then open the html file to run the tests. I saw dmitry's kotlin conf talk last year and thought I'd be able to simply move to using mocha and have the same tests run. I was wrong doh. I use
document
a fair bit, so running headless wasn't possible, so I think I'm going to have to stick with qunit until I can implement just enough of
document
DOM methods. On a side note, I'm hoping the kotlin serialisation stuff improves massively with 1.3 as running a mpp with serialisation is a nightmare right now 😮!