Something is broken with `kotlin-test-js-runner`. ...
# javascript
r
Something is broken with
kotlin-test-js-runner
. Without any code changes one of my tests in KVision started failing with strange error:
Copy code
> Task :kvision-modules:kvision-react:legacyBrowserTest
UncaughtException:: Cannot read property 'forEach' of undefined
TypeError: Cannot read property 'forEach' of undefined
    at KarmaKotlinReporter.specFailure (/home/runner/work/kvision/kvision/build/js/node_modules/kotlin-test-js-runner/karma-kotlin-reporter.js:218:88)
Here is a link to the github actions failure with full error message: https://github.com/rjaros/kvision/runs/2205736268 It fails only on legacy backend test, with ChromeHeadless, Chrome and Firefox runners with very similar message. The problem is somehow connected to react or kotlin-react, because only kvision-react module is affected. Anyone has any idea what could be the cause of this?
It could be react version conflict (17.0.1 vs 17.0.2) ...
Yep, apparently it's easier to think when the problem is reported on the slack channel 😉
Still waiting for kotlin-react 17.0.2 on maven central ...
😀 1
t
kotlin-react
doesn’t use fixed react version. For now it must use
17.0.2
if you haven’t fixed version in your project.
In this example react
17.0.2
will be used