Skip to content

Commit f116550

Browse files
committed
Setup JSDOM in the build
1 parent 08e1944 commit f116550

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ lazy val runtime = CrossProject(
107107
Test / fork := true
108108
)
109109
.jsSettings(
110-
scalaJSStage := FastOptStage
110+
scalaJSStage := FastOptStage,
111+
// jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
111112
)
112113

113114
lazy val `scalac-scoverage-runtimeJVM` = runtime.jvm

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
55
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
66

77
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0")
8+
9+
libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.1.0"

0 commit comments

Comments
 (0)