Does anyone have an example of how to set up MPP for javascript tests? I read in the docs that
At this point, test tasks for Kotlin/JS are created but do not run tests by default; they should be manually configured to run the tests with a JavaScript test framework.
but I am not quite sure about how to go about this..
r
russhwolf
11/24/2019, 5:04 PM
JS config changed pretty dramatically in 1.3.40 and the documentation hasn’t caught up yet. JS now has two targets
browser()
and
nodejs()
, and test tasks will be configured if you call one or both from your
js
target block.
Copy code
kotlin {
js {
browser()
}
}
There’s also a bunch more fine-grained configuration you can pass inside of
browser()
and
nodejs()
s
Shan
11/24/2019, 9:28 PM
Huh interesting.. tests seem to be running now. Thanks! Hopefully the docs will get updated soon 🙂