diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25a248f7..97ac2b6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,7 +79,7 @@ jobs: run: ./gradlew :koverXmlReport - name: Upload Test Report - uses: codecov/codecov-action@v4.5.0 + uses: codecov/codecov-action@v4.6.0 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/viewmodel/build.gradle.kts b/viewmodel/build.gradle.kts index 9146c7f0..053daccf 100644 --- a/viewmodel/build.gradle.kts +++ b/viewmodel/build.gradle.kts @@ -1,6 +1,7 @@ @file:Suppress("ClassName") import java.net.URL +import java.time.Duration import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl import org.jetbrains.kotlin.gradle.dsl.JsModuleKind import org.jetbrains.kotlin.gradle.dsl.JvmTarget @@ -56,16 +57,44 @@ kotlin { } } } - browser() - nodejs() + browser { + testTask { + useKarma { + useChromeHeadless() + useConfigDirectory(File(project.rootProject.projectDir, "karma")) + timeout.set(Duration.ofMinutes(5)) + } + } + } + nodejs { + testTask { + useMocha { + timeout = "10s" + } + } + } } @OptIn(ExperimentalWasmDsl::class) wasmJs { // Module name should be different from the one from JS // otherwise IC tasks that start clashing different modules with the same module name moduleName = property("POM_ARTIFACT_ID")!!.toString() + "Wasm" - browser() - nodejs() + browser { + testTask { + useKarma { + useChromeHeadless() + useConfigDirectory(File(project.rootProject.projectDir, "karma")) + timeout.set(Duration.ofMinutes(5)) + } + } + } + nodejs { + testTask { + useMocha { + timeout = "10s" + } + } + } } iosArm64()