Skip to content

Commit 2179a6c

Browse files
committed
Reconfigure munit to avoid insanity mode
1 parent e51e449 commit 2179a6c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build.sbt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import org.scalajs.jsenv.selenium.SeleniumJSEnv
2424

2525
import java.util.concurrent.TimeUnit
2626

27+
val MUnitFramework = new TestFramework("munit.Framework")
28+
val MUnitVersion = "0.7.29"
29+
2730
ThisBuild / baseVersion := "0.1"
2831

2932
ThisBuild / organization := "org.scala-js"
@@ -123,6 +126,8 @@ ThisBuild / Test / jsEnv := {
123126
}
124127
}
125128

129+
ThisBuild / Test / testOptions += Tests.Argument(MUnitFramework, "+l")
130+
126131
// project structure
127132

128133
lazy val root = project
@@ -133,7 +138,7 @@ lazy val core = project
133138
.in(file("core"))
134139
.settings(
135140
name := "scala-js-macrotask-executor",
136-
libraryDependencies += "org.scalameta" %%% "munit" % "0.7.29" % Test,
141+
libraryDependencies += "org.scalameta" %%% "munit" % MUnitVersion % Test,
137142
)
138143
.enablePlugins(ScalaJSPlugin)
139144

@@ -146,7 +151,7 @@ lazy val webworker = project
146151
scalaJSUseMainModuleInitializer := true,
147152
libraryDependencies ++= Seq(
148153
("org.scala-js" %%% "scalajs-dom" % "1.2.0").cross(CrossVersion.for3Use2_13),
149-
"org.scalameta" %%% "munit" % "0.7.29" % Test,
154+
"org.scalameta" %%% "munit" % MUnitVersion % Test,
150155
),
151156
(Test / test) := (Test / test).dependsOn(Compile / fastOptJS).value,
152157
buildInfoKeys := Seq[BuildInfoKey](scalaVersion, baseDirectory),

0 commit comments

Comments
 (0)