Skip to content
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 jsdom v12.x in JSDOMNodeJSEnv #265

Merged
merged 2 commits into from Sep 24, 2018

Conversation

ngbinh
Copy link
Contributor

@ngbinh ngbinh commented Sep 20, 2018

Just similar to scala-js/scala-js#3432

should fixes #261

should allow us to
```
version in installJsDom := "12.0.0"
```
Copy link
Contributor

@julienrf julienrf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ngbinh! I only have one question about your changes. See my comment below.

val scriptsJSPaths = getLibJSFiles().map {
case file: FileVirtualFile => file.path
case file => libCache.materialize(file).getAbsolutePath
val scriptsFiles = (getLibJSFiles() :+ code).map {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@julienrf julienrf merged commit 44e401c into scalacenter:master Sep 24, 2018
@ngbinh ngbinh deleted the jsdom-12.0.0 branch September 27, 2018 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jsdom.createVirtualConsole does not exist in jsdom v12.0.0
2 participants