How to debug karma test with the new js-plugin?

I fail to debug anything from inside intellij when I’m running stuff with the new gradle-js plugin. (1.4.0-rc)

Does anyone know the trick - if there is one?