You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
479 B
18 lines
479 B
3 years ago
|
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()
|
||
3 years ago
|
useFirefoxHeadless()
|
||
3 years ago
|
}
|