From 4d2abf0da0cb73f811694b6866531ad778595cbb Mon Sep 17 00:00:00 2001 From: sksamuel Date: Mon, 26 Sep 2022 06:21:17 -0500 Subject: [PATCH] Support TestCoroutineInterceptor on K/N --- .../commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt b/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt index 1e487b52955..f93a0a287a3 100644 --- a/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt +++ b/kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/test/TestCaseExecutor.kt @@ -72,7 +72,7 @@ class TestCaseExecutor( TestInvocationInterceptor(configuration.registry, timeMark), InvocationTimeoutInterceptor, if (platform == Platform.JVM && testCase.config.testCoroutineDispatcher) TestDispatcherInterceptor() else null, - if (platform == Platform.JVM && testCase.config.coroutineTestScope) TestCoroutineInterceptor() else null, + if (platform != Platform.JS && testCase.config.coroutineTestScope) TestCoroutineInterceptor() else null, CoroutineDebugProbeInterceptor, )