Update kotlinx-serialization dependency for serialization compiler plugin tests.
Properly set up dom-api-compat dependency for JS IR tests. Since this dependency is added automatically for every Kotlin/JS library, it should be present during tests just as stdlib. As a result, tests for serializable enums were changed since 1.6.0 runtime does not require enums to be explicitly serializable.
This commit is contained in:
committed by
Space Team
parent
3d720f9c03
commit
4fa121071a
+4
-3
@@ -12,6 +12,7 @@ import org.jetbrains.kotlin.js.test.ir.AbstractJsIrTest
|
||||
import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
|
||||
import org.jetbrains.kotlin.test.model.TestModule
|
||||
import org.jetbrains.kotlin.test.services.EnvironmentConfigurator
|
||||
import org.jetbrains.kotlin.test.services.RuntimeClasspathJsProvider
|
||||
import org.jetbrains.kotlin.test.services.RuntimeClasspathProvider
|
||||
import org.jetbrains.kotlin.test.services.TestServices
|
||||
import org.jetbrains.kotlinx.atomicfu.compiler.extensions.AtomicfuLoweringExtension
|
||||
@@ -41,8 +42,8 @@ class AtomicfuEnvironmentConfigurator(testServices: TestServices) : EnvironmentC
|
||||
|
||||
class AtomicfuJsRuntimeClasspathProvider(
|
||||
testServices: TestServices
|
||||
) : RuntimeClasspathProvider(testServices) {
|
||||
) : RuntimeClasspathJsProvider(testServices) {
|
||||
override fun runtimeClassPaths(module: TestModule): List<File> {
|
||||
return listOf(atomicfuJsCompileDependency, atomicfuJsIrRuntime).map { File(it) }
|
||||
return super.runtimeClassPaths(module) + listOf(atomicfuJsCompileDependency, atomicfuJsIrRuntime).map { File(it) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user