xref: /aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-test/build.gradle.kts (revision 7a7160fed73afa6648ef8aa100d4a336fe921d9a)
1 import org.jetbrains.kotlin.gradle.plugin.mpp.*
2 import org.jetbrains.kotlin.gradle.targets.js.dsl.*
3 
<lambda>null4 kotlin {
5     targets.withType(KotlinNativeTargetWithTests::class.java).configureEach {
6         binaries.getTest("DEBUG").apply {
7             optimized = true
8         }
9     }
10 
11     sourceSets {
12         jvmTest {
13             dependencies {
14                 implementation(project(":kotlinx-coroutines-debug"))
15             }
16         }
17     }
18 
19     @OptIn(ExperimentalWasmDsl::class)
20     wasmJs {
21         nodejs {
22             testTask {
23                 filter.apply {
24                     // https://youtrack.jetbrains.com/issue/KT-61888
25                     excludeTest("TestDispatchersTest", "testMainMocking")
26                 }
27             }
28         }
29     }
30 }
31