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
+8
@@ -12,6 +12,14 @@ abstract class RuntimeClasspathProvider(val testServices: TestServices) {
|
||||
abstract fun runtimeClassPaths(module: TestModule): List<File>
|
||||
}
|
||||
|
||||
abstract class RuntimeClasspathJsProvider(testServices: TestServices) : RuntimeClasspathProvider(testServices) {
|
||||
override fun runtimeClassPaths(module: TestModule): List<File> {
|
||||
return listOf(
|
||||
File(System.getProperty("kotlin.js.dom.api.compat")!!)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
class RuntimeClasspathProvidersContainer(val providers: List<RuntimeClasspathProvider>) : TestService
|
||||
|
||||
private val TestServices.runtimeClasspathProviderContainer: RuntimeClasspathProvidersContainer by TestServices.testServiceAccessor()
|
||||
|
||||
Reference in New Issue
Block a user