[Gradle, JS] Fail incremental test if there is source maps warning

^KT-47751 fixed
This commit is contained in:
Ilya Goncharov
2021-07-16 12:57:18 +03:00
committed by teamcityserver
parent f73726c330
commit adeb2f527b
@@ -133,7 +133,14 @@ class Kotlin2JsIrGradlePluginIT : AbstractKotlin2JsGradlePluginIT(true) {
gradleProperties().appendText("\nkotlin.incremental.js.ir=true")
gradleProperties().appendText("\norg.gradle.parallel=true")
build("assemble") {
build(
"assemble",
options = defaultBuildOptions()
.copy(
jsCompilerType = KotlinJsCompilerType.IR,
warningMode = WarningMode.Fail
)
) {
assertSuccessful()
}
}