diff --git a/buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts b/buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts index f56faf4bc48..4b9a4dfe41a 100644 --- a/buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts +++ b/buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts @@ -27,7 +27,15 @@ kotlin { jvm() js { - nodejs() + nodejs { + testTask { + useMocha { + // disable timeouts, some tests are too slow for default 2-second timeout: + // https://mochajs.org/#-timeout-ms-t-ms + timeout = "0" + } + } + } useCommonJs() } jvmToolchain(Jvm.target) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 454621f9578..dd2d439ba82 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -4,16 +4,6 @@ plugins { } kotlin { - js { - nodejs { - testTask { - useMocha { - timeout = "10000" // KordEventDropTest is too slow for default 2 seconds timeout - } - } - } - } - sourceSets { commonMain { dependencies {