How can I opt-in to the new browser testing mechan...
# javascript
c
How can I opt-in to the new browser testing mechanism from a convention plugin that may be applied to projects that don't have JS targets at all?
h
Use another convention plugin 🤷🏻‍♂️
c
I already have so many 😓
a
CC: @Anton Lakotka [JB] @Adam Semenenko
a
Please make an issue. I think there are a other new features added that have similar problems because they don't support the Provider API. An issue would help a lot.
a
How can I opt-in to the new browser testing mechanism from a convention plugin that may be applied to projects that don't have JS targets at all?
Copy code
kotlin {
    targets.configureEach {
        if (this is KotlinJsIrTarget) {
            subTargets.configureEach {
                if (this is KotlinJsBrowserDsl) {
                    test {
                        firefox()
                    }
                }
            }
        }
    }
}
I guess this should work.