How to run/debug shared tests in Scala-js project?

In my minimal Scala-js test project

https://github.com/marcgrue/scalajs-shared-test

I get a `ClassNotFoundException for TestShared: TestShared` when trying to run shared/src/test/scala/TestShared. Is there a way to enable running the test file in IntelliJ?

In the terminal I can run it with `sbt fooJVM/testOnly -- TestShared` but I would like to able to run it from within IntelliJ (also to be able to debug it).

Shared source code files get transpiled to both js and jvm, so I guess I need to tell Intellij which of them I want to test. Ideally I would like to simply right click a shared source code file and say Run/Debug and then having IntelliJ run the jvm compiled code for instance.

请先登录再写评论。