Skip to content

Commit

Permalink
info log the JSEnv
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Jun 4, 2022
1 parent 29c58c8 commit 49f2baf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,14 @@ lazy val tests = crossProject(JSPlatform, JVMPlatform, NativePlatform)
.jsSettings(
sharedJSSettings,
jsEnv := {
if (Option(System.getenv("GITHUB_JOB")).contains("jsdom"))
val log = sLog.value
if (Option(System.getenv("GITHUB_JOB")).contains("jsdom")) {
log.info("Testing in JSDOMNodeJSEnv")
new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
else
} else {
log.info("Testing in NodeJSEnv")
new org.scalajs.jsenv.nodejs.NodeJSEnv
}
}
)
.jvmSettings(
Expand Down

0 comments on commit 49f2baf

Please sign in to comment.