I’m having trouble running the js test example: ``...
# kotest
c
I’m having trouble running the js test example:
Copy code
~/Projects/kotlin/kotest% ./gradlew kotest-examples:kotest-examples-javascript:jsTest

> Configure project :
Kotlin Multiplatform Projects are an experimental feature.

The Kotlin source set commonTest was configured but not added to any Kotlin compilation. You can add a source set to a target's compilation by connecting it with the compilation's default source set using 'dependsOn'.
See <https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#connecting-source-sets>

> Task :kotest-examples:kotest-examples-javascript:installMocha
npm WARN saveError ENOENT: no such file or directory, open '/Users/christoph/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/christoph/package.json'
npm WARN christoph No description
npm WARN christoph No repository field.
npm WARN christoph No README data
npm WARN christoph No license field.

+ mocha@8.0.1
updated 1 package and audited 191 packages in 1.527s
found 0 vulnerabilities


> Task :kotest-examples:kotest-examples-javascript:runMocha FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':kotest-examples:kotest-examples-javascript:runMocha' (type 'NodeTask').
> File '/Users/christoph/Projects/kotlin/kotest/kotest-examples/kotest-examples-javascript/node_modules/mocha/bin/mocha' specified for property 'script' does not exist.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 3s
14 actionable tasks: 2 executed, 12 up-to-date
~/Projects/kotlin/kotest%
s
Did you install mocha
c
do i have to manually install it? gradle seems to run a install mocha task and fail 🙂