[JS IR] Eager initialization of adapter for kotlin.test tests
This commit is contained in:
@@ -14,7 +14,10 @@ fun raise(name: String): Nothing {
|
|||||||
throw Exception(name)
|
throw Exception(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Adapter should be initialized eagerly
|
||||||
@Suppress("INVISIBLE_MEMBER")
|
@Suppress("INVISIBLE_MEMBER")
|
||||||
|
@OptIn(kotlin.ExperimentalStdlibApi::class)
|
||||||
|
@JsEagerInitialization
|
||||||
private val underscore = kotlin.test.setAdapter(object : FrameworkAdapter {
|
private val underscore = kotlin.test.setAdapter(object : FrameworkAdapter {
|
||||||
override fun suite(name: String, ignored: Boolean, suiteFn: () -> Unit) {
|
override fun suite(name: String, ignored: Boolean, suiteFn: () -> Unit) {
|
||||||
sortingContext.suite(name, ignored) { suiteFn() }
|
sortingContext.suite(name, ignored) { suiteFn() }
|
||||||
|
|||||||
Reference in New Issue
Block a user