re-natal
re-natal copied to clipboard
Testing
All repos built with re-natal seem to be left with the same stub test file which just returns false - and is authored in clojure, rather than cljs. Is there a preferred test setup within re-natal?
Good question. No preferred test setup currently available as a template. It is worth to ask community on Clojurians slack #cljsrn channel. Proposal for test template or PR is welcome.
Somewhat related: there is also a test script in package.json
. When running it 2 tests are executed and fail with some react exceptions.
Is that expected?
Do tests actually work for anyone? I can't get my tests to run through the figwheel repl
I having trouble getting testing working as well. When loading a file for testing that requires reagent, I get and error expecting react.
... done. Elapsed 3.083821977 seconds
;; ======================================================================
;; Testing with Phantom:
Error: js/React is missing
phantomjs://code/phantom4793569260619870000.js:81 in onError```