[JS IR] Eager initialization of adapter for kotlin.test tests

This commit is contained in:
Ilya Goncharov
2021-09-21 11:48:43 +03:00
committed by Space
parent dedb9d9018
commit 23c8433fce
+3
View File
@@ -14,7 +14,10 @@ fun raise(name: String): Nothing {
throw Exception(name)
}
// Adapter should be initialized eagerly
@Suppress("INVISIBLE_MEMBER")
@OptIn(kotlin.ExperimentalStdlibApi::class)
@JsEagerInitialization
private val underscore = kotlin.test.setAdapter(object : FrameworkAdapter {
override fun suite(name: String, ignored: Boolean, suiteFn: () -> Unit) {
sortingContext.suite(name, ignored) { suiteFn() }