Closed WillForan closed 2 years ago
You're testing via a node repl, the js constant "window" does not exist in node. Make sure you're using a browser-repl in your tests.edn
Ah! Thanks!
Added :cljs/repl-env cljs.repl.browser/repl-env
and got passed the error
... now onto debugging Kaocha ClojureScript client failed connecting back.
locally and within github actions, I get an error re: undefined window.
I suspect this is related to the known issues around linux and an open browser window. But I at least have the browser window open. I think I'm missing something obvious, but have come up empty so far.
The github action is the easiest to point to. It runs chrome in the background and
clojure -A:test -M -m kaocha.runner
viamake test
https://github.com/LabNeuroCogDevel/choice-landscape/blob/master/.github/workflows/test-cljs.yaml https://github.com/LabNeuroCogDevel/choice-landscape/blob/master/Makefile https://github.com/LabNeuroCogDevel/choice-landscape/blob/master/tests.edn
chrome was at least running at some point, the CI log mentions killing it during clean up
locally I get the same error
clojure -A:test -M -m kaocha.runner --no-capture-output