Skip to content

Commit 6bd7876

Browse files
committed
Error on deprecation in tests tests
1 parent 862d8f5 commit 6bd7876

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/project/Build.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ object ScalaJsReact {
215215
.dependsOn(coreBundleCallback) // Low priority
216216
.configure(commonSettings, preventPublication, utestSettings, addReactJsDependencies(Test))
217217
.settings(
218-
Test / scalacOptions --= Seq(
219-
"-Xlint:adapted-args"
220-
),
218+
Test / scalacOptions -= "-Xlint:adapted-args",
219+
Test / scalacOptions += "-Wconf:cat=deprecation:e", // error on deprecation, that's what testsDep is for
221220
libraryDependencies ++= Seq(
222221
Dep.nyayaProp.value % Test,
223222
Dep.nyayaGen.value % Test,

0 commit comments

Comments
 (0)