Shagen Ogandzhanian
3 years ago
committed by
GitHub
11 changed files with 54 additions and 22 deletions
@ -0,0 +1,17 @@
|
||||
package org.jetbrains.compose.gradle |
||||
|
||||
import org.jetbrains.kotlin.gradle.targets.js.testing.karma.KotlinKarma |
||||
|
||||
object kotlinKarmaConfig { |
||||
var rootDir: String? = null |
||||
} |
||||
|
||||
|
||||
fun KotlinKarma.standardConf() { |
||||
if (kotlinKarmaConfig.rootDir == null) { |
||||
throw Exception("kotlinKarmaConfig.rootDir should be set somewhere") |
||||
} |
||||
useConfigDirectory("${kotlinKarmaConfig.rootDir}/test-utils/conf/karma.config.common.d") |
||||
useChromeHeadless() |
||||
useFirefox() |
||||
} |
Loading…
Reference in new issue