Justin Shapiro
07/01/2020, 5:08 PMkotlin.browser.window.setInterval
I get the following error:
ReferenceError: window is not defined
I thought I was only targeting browser
js("browser") {
browser {}
}
and that those tests are executed by karma in chrome. Am I wrong? Is there more to only targeting browsers and getting the tests to run in the headless browser?turansky
07/01/2020, 5:15 PM1.3.72
?turansky
07/01/2020, 5:16 PMstdlib-js
?Justin Shapiro
07/01/2020, 5:17 PMturansky
07/01/2020, 5:19 PMkotlin("test-js")
in test dependencies?Justin Shapiro
07/01/2020, 5:27 PMturansky
07/01/2020, 5:45 PMsetInterval?
Justin Shapiro
07/01/2020, 5:56 PMturansky
07/01/2020, 5:57 PM// Try
js {
browser ()
}
// instead of
js("browser") {
browser {}
}
Justin Shapiro
07/01/2020, 6:07 PMError: Uncaught SyntaxError: Unexpected identifier (<http://localhost:9876/context.html:1>)
turansky
07/01/2020, 6:09 PMJustin Shapiro
07/01/2020, 6:09 PMturansky
07/01/2020, 6:12 PMturansky
07/01/2020, 6:12 PMturansky
07/01/2020, 6:13 PM./gradlew clean
./gradlew --stop
Justin Shapiro
07/01/2020, 6:39 PM