-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for JS modules #56
Comments
jsdom itself does not support ECMAScript modules: jsdom/jsdom#2475 You may want to try https://github.com/scala-js/scala-js-env-selenium instead. |
..but had to go without modules scala-js/scala-js-env-jsdom-nodejs#56
@sjrd I've tried Selenium to run Scala.js tests using DOM, but I encountered another issue reported in scala-js/scala-js-env-selenium#128 It seems ESModule can't be used with Selenium probably because module files are accessed using relative paths. |
ok. I've found a workaround to use Scala.js + jsdom + Selenium Chrome Driver. Leaving an example project here, which works with Vite, ScalablyTyped, Selenium, jsdom: https://github.com/xerial/scalajs-selenium |
After completing the initial vite tutorial, I started looking for the way to UT the actual DOM generated. JsDom was recomended by older tutorial, so I gave it a try. It failed with:
IMO it's likely to confuse many new users.
Since the modular config is now the default, would be nice to have it supported here.
If not, what's currently the best approach to the DOM testing?
The text was updated successfully, but these errors were encountered: