Shan

    Shan

    2 years ago
    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..
    russhwolf

    russhwolf

    2 years ago
    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.
    kotlin {
      js {
        browser()
      }
    }
    There’s also a bunch more fine-grained configuration you can pass inside of
    browser()
    and
    nodejs()
    Shan

    Shan

    2 years ago
    Huh interesting.. tests seem to be running now. Thanks! Hopefully the docs will get updated soon 🙂