Closed
Description
When jsEnv
is set to JSDOMNodeJSEnv().value
, plugin treats it as PhantomJS environment.
This environment has a window
property, so this conditional treats it as PhantomJS:
https://github.com/lustefaniak/scalac-scoverage-plugin/blob/master/scalac-scoverage-runtime/js/src/main/scala/scalajssupport/File.scala#L62
As a consequence - tests fail with:
scala.scalajs.js.JavaScriptException: TypeError: $g.callPhantom is not a function
The conditional should be tweaked somehow (no suggestions yet, so far just reporting).
Steps to reproduce:
- Add to build.sbt
jsEnv in Test := JSDOMNodeJSEnv().value
npm install jsdom
- run tests
Metadata
Metadata
Assignees
Labels
No labels