diff --git a/build-logic/src/main/kotlin/-KmpConfigurationExtension.kt b/build-logic/src/main/kotlin/-KmpConfigurationExtension.kt index bf195ae..0afca9d 100644 --- a/build-logic/src/main/kotlin/-KmpConfigurationExtension.kt +++ b/build-logic/src/main/kotlin/-KmpConfigurationExtension.kt @@ -40,17 +40,18 @@ fun KmpConfigurationExtension.configureShared( java9ModuleInfoName = java9ModuleName } - js { - target { - browser() - nodejs() - } - } + js() @OptIn(ExperimentalWasmDsl::class) wasmJs { target { - browser() + browser { + testTask { + useMocha { + timeout = "30s" + } + } + } nodejs() } } diff --git a/library/base16/karma.config.d/timeout-override.js b/library/base16/karma.config.d/timeout-override.js deleted file mode 100644 index c93b79c..0000000 --- a/library/base16/karma.config.d/timeout-override.js +++ /dev/null @@ -1,9 +0,0 @@ -// Override test timeout. Needed for stress tests -config.set({ - "client": { - "mocha": { - "timeout": 30000 - }, - }, - "browserDisconnectTimeout": 30000 -}); diff --git a/library/base32/karma.config.d/timeout-override.js b/library/base32/karma.config.d/timeout-override.js deleted file mode 100644 index c93b79c..0000000 --- a/library/base32/karma.config.d/timeout-override.js +++ /dev/null @@ -1,9 +0,0 @@ -// Override test timeout. Needed for stress tests -config.set({ - "client": { - "mocha": { - "timeout": 30000 - }, - }, - "browserDisconnectTimeout": 30000 -}); diff --git a/library/base64/karma.config.d/timeout-override.js b/library/base64/karma.config.d/timeout-override.js deleted file mode 100644 index c93b79c..0000000 --- a/library/base64/karma.config.d/timeout-override.js +++ /dev/null @@ -1,9 +0,0 @@ -// Override test timeout. Needed for stress tests -config.set({ - "client": { - "mocha": { - "timeout": 30000 - }, - }, - "browserDisconnectTimeout": 30000 -}); diff --git a/library/core/karma.config.d/timeout-override.js b/library/core/karma.config.d/timeout-override.js deleted file mode 100644 index c93b79c..0000000 --- a/library/core/karma.config.d/timeout-override.js +++ /dev/null @@ -1,9 +0,0 @@ -// Override test timeout. Needed for stress tests -config.set({ - "client": { - "mocha": { - "timeout": 30000 - }, - }, - "browserDisconnectTimeout": 30000 -});