Open gnawinganimal opened 6 years ago
An update on this: it seems that running 'gradle test' in all the examples in the js-tests folder do not work, except for the jest example, which works as expected. I'm assuming they worked at one point but have become outdated somehow. Again, I am just trying to learn this myself so I am not sure what is wrong.
Have the same issue any updates?
Encountered the same issue.
Maybe the node version is an issue: https://github.com/karma-runner/karma/issues/3111#issuecomment-431572445
Any idea how to update the node version in com.craigburke.karma? From the craigburke sources I see that the used node version is the default in the plugin code...
Here is a good article that helps to make the JS tests work again: https://medium.com/@gz_k/effective-tool-chain-for-kotlin-js-testing-b243449e8a16
This solution has also a much faster build time than the karma gradle plugin.
If you use the amd format, here is an example how I got it running using requirejs: https://gitlab.com/czeidler/fejoa/tree/master/jsbindings
the node plugin version 1.2.0 does not seem to work anymore. And with version 1.3.1 I cannot use any dependencies in the tests. Anyone actually using that? Experiences with a good project setup?
Also it would be useful, if the examples would use dependencies, so that case is handled as well.
Hello, I am new to unit tests with kotlin-js and I am attempting to learn how to set it up using the karma example. However, it seems that there is something wrong with this example because even if I clone the project itself and run 'gradle test' it always produces the same error:
It seems that the js spread operator is not supported by the javascript version, but I don't know what to do about it 🤷. Does somebody here know?