-
Notifications
You must be signed in to change notification settings - Fork 27
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
Cross-build for JS+Native #409
Conversation
Darn. Update: Miles and I chatted on Discord, it seems that skunk-circe is not being used in the failing test. So there's something else going on 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to move some tests to js-jvm
only sources. I'll circle back when the next wave of Scala Native improvements release. We should be able to make this project 100% shared code.
assert(weaklyEqual(x, y, strictPaths)) | ||
assert(weaklyEqual(clue(x), clue(y), strictPaths)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anything wrapped in clue
will be printed when the assertion fails, useful for debugging.
// JS treats floats as doubles | ||
def isJS = Option(System.getProperty("java.vm.name")).contains("Scala.js") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was highly annoying but does the trick ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, but 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome! Thanks so much 🎉
@@ -26,7 +25,7 @@ trait SqlDatabaseSuite extends CatsEffectSuite { | |||
} | |||
|
|||
def bindPath(path: String): String = | |||
Path(".").absolute.parent.flatMap(_.parent).flatMap(_.parent).get.toString+"/"+path | |||
buildinfo.BuildInfo.baseDirectory + "/" + path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is much better ... thanks!
// JS treats floats as doubles | ||
def isJS = Option(System.getProperty("java.vm.name")).contains("Scala.js") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch, but 👍
Almost there, just have to track down a couple things ... :)