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

Test code from shared is not shared with client and server #44

Closed
i-am-the-slime opened this issue May 11, 2016 · 2 comments
Closed

Test code from shared is not shared with client and server #44

i-am-the-slime opened this issue May 11, 2016 · 2 comments

Comments

@i-am-the-slime
Copy link

I have some nyaya Generators that I would like to use in both my server and client tests. They are in the shared tests folder. How can I make them accessible without duplicating them and without somehow packaging them into the final JS?

@vmunier
Copy link
Owner

vmunier commented May 11, 2016

Try changing this line https://github.com/vmunier/play-with-scalajs-example/blob/49a96dd0ec802d274a70447bc0c74b0b9c8ca5ea/build.sbt#L21 to dependsOn(sharedJvm % "compile;test->test"). Similar change for the client project.

compile is a shorthand for compile->compile, which means server compile scope depends on sharedJvm compile scope. test->test means server test scope depends on sharedJvm test scope. (test is a shorthand test->compile)

@i-am-the-slime
Copy link
Author

Sauber 👍 I think that worked!

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

No branches or pull requests

2 participants