When I execute tests, the main method is executed....
# javascript
c
When I execute tests, the main method is executed. I assume this is to test graphical components? I'm using Kotlin React, so the main method tries to find the
root
element, which doesn't exist during tests because it's not executed from the HTML file. What can I do? I'm using the legacy compiler with
binaries.executable
, if that makes a difference.
t
You can add check in
main
method (workaround)
Related issue already exists with example
c
Yeah, I added a check. Not pretty.