Skip to content

Commit 12513f2

Browse files
committed
Setup JSDOM in the build
1 parent 971d01f commit 12513f2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ lazy val runtime = CrossProject(
112112
Test / fork := true
113113
)
114114
.jsSettings(
115-
scalaJSStage := FastOptStage
115+
scalaJSStage := FastOptStage,
116+
// jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv()
116117
)
117118

118119
lazy val `runtimeJVM` = runtime.jvm

project/plugins.sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ 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.9.33")
8+
9+
libraryDependencies += "org.scala-js" %% "scalajs-env-jsdom-nodejs" % "1.1.0"
10+

0 commit comments

Comments
 (0)