Fork me on GitHub
#kaocha
<
2019-02-13
>
Christian Johansen12:02:42

I'm trying to run some CLJS tests on node with kaocha on a project that uses cljsjs/moment, and it fails spectacularly. I suspect that the problem is compiling with optimizations other than "none", but I'm unsure how kaoacha-cljs compiles the code?

Christian Johansen12:02:49

anyone else seen this?

Christian Johansen12:02:33

clojure -A:dev:test --watch
WARNING: symbol already refers to: #'clojure.core/symbol in namespace: kaocha.type.cljs, being replaced by: #'kaocha.core-ext/symbol
[watch] Fatal error in test run #error {
 :cause No such namespace: cljsjs.moment, could not locate cljsjs/moment.cljs, cljsjs/moment.cljc, or JavaScript source providing "cljsjs.moment" in file /private/tmp/time-test/src/dingy/core.cljs
 :data {:tag :cljs/analysis-error}
 :via
 [{:type clojure.lang.ExceptionInfo
   :message nil
   :data #:clojure.error{:source nil, :line nil, :column nil, :phase :compilation}
   :at [cljs.analyzer$analyze invokeStatic analyzer.cljc 4128]}
  {:type clojure.lang.ExceptionInfo
   :message No such namespace: cljsjs.moment, could not locate cljsjs/moment.cljs, cljsjs/moment.cljc, or JavaScript source providing "cljsjs.moment" in file /private/tmp/time-test/src/dingy/core.cljs
   :data {:tag :cljs/analysis-error}
   :at [cljs.analyzer$error invokeStatic analyzer.cljc 751]}]
 :trace

vikeri15:02:53

Hi! Is there a way to force kaocha to rerun even passing tests?

vikeri15:02:05

I’m using the --watch flag FYI

caio15:02:39

@vikeri pressing enter I think reruns everything