re-natal icon indicating copy to clipboard operation
re-natal copied to clipboard

Testing

Open agravitis opened this issue 7 years ago • 4 comments

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?

agravitis avatar Apr 10 '17 22:04 agravitis

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.

drapanjanas avatar Apr 16 '17 07:04 drapanjanas

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?

jeluard avatar May 15 '17 12:05 jeluard

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

tobowers avatar Jun 30 '17 10:06 tobowers

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

CalebMacdonaldBlack avatar Jul 19 '17 11:07 CalebMacdonaldBlack