Fix failing tests when gradle build
gradle build = gradle assemble + gradle allTests failing in local and in CI:
js shouldThrow tests:
> AssertionError: Expected exception ArithmeticException but a ArithmeticException was thrown instead.
- assemble runs assembleNodeJsNpmPublication
- assembleNodeJsNpmPublication populates build/js/packages/c-crdtlib-nodeJs/kotlin/node_modules
→ seems to conflict with build/js/packages/c-crdtlib-nodeJs/node_modules
Probably due to multiple instance of kotlin in these directories. This works for me:
- assembleNodeJsNpmPublication populates build/js/packages/c-crdtlib-nodeJs/kotlin/node_modules
gradle assemble
rm -rf build/packages/c-crdtlib-nodeJs/kotlin/node_modules/kotlin
gradle allTests
I think the problem comes from CI delivery configuration !46 (merged).
Edited by Florent Coriat