diff --git a/project.clj b/project.clj index a73320b..710440b 100644 --- a/project.clj +++ b/project.clj @@ -83,5 +83,5 @@ "deploy-lib" ["do" ["build-once"] ["deploy" "clojars"] ["install"]] "test-clj" ["with-profile" "+c1.12:+c1.11:+c1.10:+c1.9" "test"] - "test-cljs" ["with-profile" "+test" "cljsbuild" "test"] + "test-cljs" ["with-profile" "+c1.12" "cljsbuild" "test"] "test-all" ["do" ["clean"] ["test-clj"] ["test-cljs"]]}) diff --git a/test/taoensso/telemere_tests.cljc b/test/taoensso/telemere_tests.cljc index 2cca913..759f763 100644 --- a/test/taoensso/telemere_tests.cljc +++ b/test/taoensso/telemere_tests.cljc @@ -540,4 +540,10 @@ ;;;; +#?(:cljs + (defmethod test/report [:cljs.test/default :end-run-tests] [m] + (when-not (test/successful? m) + ;; Trigger non-zero `lein test-cljs` exit code for CI + (throw (ex-info "ClojureScript tests failed" {}))))) + #?(:cljs (test/run-tests))