drapanjanas / re-natal

Bootstrap ClojureScript React Native apps
MIT License
1.22k stars 100 forks source link

Testing #105

Open agravitis opened 7 years ago

agravitis commented 7 years ago

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?

drapanjanas commented 7 years ago

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.

jeluard commented 7 years ago

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?

tobowers commented 7 years ago

Do tests actually work for anyone? I can't get my tests to run through the figwheel repl

CalebMacdonaldBlack commented 7 years ago

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```