From 4fa9286c4da52a49afe5f465e45f96b8e2774ecb Mon Sep 17 00:00:00 2001 From: xxfast Date: Sat, 16 Mar 2024 12:34:46 +1100 Subject: [PATCH] Fix to run wasm test tasks in ci --- build.gradle.kts | 2 -- kstore-storage/build.gradle.kts | 9 +++++++++ kstore/build.gradle.kts | 11 +++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b5a32ee..9346852 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -108,5 +108,3 @@ allprojects { koverMerged { enable() } - - diff --git a/kstore-storage/build.gradle.kts b/kstore-storage/build.gradle.kts index 1e53d69..f827264 100644 --- a/kstore-storage/build.gradle.kts +++ b/kstore-storage/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension plugins { kotlin("multiplatform") @@ -35,4 +36,12 @@ kotlin { } } +// TODO: https://youtrack.jetbrains.com/issue/KT-63014/Running-tests-with-wasmJs-in-1.9.20-requires-Chrome-Canary#focus=Comments-27-8321383.0-0 +project.the().apply { + nodeVersion = "21.0.0-v8-canary202309143a48826a08" + nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary" +} +tasks.withType().configureEach { + args.add("--ignore-engines") +} diff --git a/kstore/build.gradle.kts b/kstore/build.gradle.kts index 075572f..4f78b18 100644 --- a/kstore/build.gradle.kts +++ b/kstore/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl +import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension plugins { kotlin("multiplatform") @@ -144,3 +145,13 @@ kotlin { val windowsTest by getting } } + +// TODO: https://youtrack.jetbrains.com/issue/KT-63014/Running-tests-with-wasmJs-in-1.9.20-requires-Chrome-Canary#focus=Comments-27-8321383.0-0 +project.the().apply { + nodeVersion = "21.0.0-v8-canary202309143a48826a08" + nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary" +} + +tasks.withType().configureEach { + args.add("--ignore-engines") +}