bloop
bloop copied to clipboard
Bug: jsdom hardcoded to false in Scala.js projects
Bug
Seems like (unintentionally?) jsdom setting in the generated config is set to false: https://github.com/scalacenter/bloop/blob/3eab1f8079cfaf228ec68740daadf5854070c89b/integrations/sbt-bloop/src/main/scala/bloop/integrations/sbt/SbtBloop.scala#L779
Which means the tests don't run from IDEs.
Manually changing jsdom to true in the generated json config leads to tests running successfully via both bloop and from IDE.
Reproduce
It's not minimal, but not involved:
- Clone https://github.com/keynmol/http4s-laminar-stack
- Attempt to run
FrontendSpecIt will fail - modify
.bloop/frontend-test.json, changingjsdomproperty to true - run
FrontendSpecagain - it should succeed (as long as jsdom is installed on the machine)
Thanks for reporting! It seems that this just the default and we should pick that up somewhere else. I do not have time to take a look right now, but I will get back to it later on.
I've already started hacking on the codebase trying to fix it - would you mind assigning it to me?
I've already started hacking on the codebase trying to fix it - would you mind assigning it to me?
Not at all! Thanks!