Do anyone has it working with kotlin tests with Ka...
# fritz2
f
Do anyone has it working with kotlin tests with Karma on 1.9.20? It all went great until I wanted to test some stuff, running test task ends with:
Copy code
> Task :client:jsBrowserTest
Error in config file!
 TypeError: Cannot read properties of undefined (reading 'main')
    at C:\Users\fpiec\IdeaProjects\tabletop\build\js\packages\tabletop-client-test\karma.conf.js:135:18
    at createWebpackConfig (C:\Users\fpiec\IdeaProjects\tabletop\build\js\packages\tabletop-client-test\karma.conf.js:157:3)
    at module.exports (C:\Users\fpiec\IdeaProjects\tabletop\build\js\packages\tabletop-client-test\karma.conf.js:179:22)
    at Object.parseConfig (C:\Users\fpiec\IdeaProjects\tabletop\build\js\node_modules\karma\lib\config.js:470:26)
    at exports.run (C:\Users\fpiec\IdeaProjects\tabletop\build\js\node_modules\karma\lib\cli.js:288:26)
    at Object.<anonymous> (C:\Users\fpiec\IdeaProjects\tabletop\build\js\node_modules\karma\bin\karma:3:23)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
java.lang.IllegalStateException: command 'C:\Users\fpiec\.gradle\nodejs\node-v18.12.1-win-x64\node.exe' exited with errors (exit code: 1)
I use
tailwind.config.js
from tailwind template and it seems it gets merged into karma.conf.js on build. I tried with the template repository, tests work on the default 1.7.20 kotlin but by switching to 1.9.20 it ends with the same error I get.
j
Are you using the latest release candidate?