Is there any way to configure karma daemon "intera...
# javascript
r
Is there any way to configure karma daemon "interactive" tests in the browser with the new Kotlin/JS plugin (like it was with the old
kotlin-frontend-plugin
)?
t
Is it standard logic for karma?
r
No idea 🙂
u
Robert, can you show a small snippet of this "interactive" setup for kotlin-frontend-plugin - I'm not sure I understand what is tried to be achieved.
1
r
It was the default setup of kotlin-frontend-plugin. When executing
run
command karma daemon was started on http://localhost:9876/. It looked like this:
It was hot reloaded when the source code changed.
I'm just wondering if this can be achieved with new Kotlin/JS plugin.
i
Hi! It is not implemented yet in new plugin, but you can use such workaraound You need to create
karma.config.d/<any>.js
with such content
Copy code
config.singleRun = false
You can run two Gradle processes, the first
./gradlew compileTestKotlinJs *-t*
it runs compilation in contionuous mode, and will react on changes of code. The second one (in other terminal) you need to run
./gradlew browserTest
👍 1