Skip to content

Commit

Permalink
ClojureScript reporter should print to remote repl, not console.log #81
Browse files Browse the repository at this point in the history
  • Loading branch information
dustingetz committed Oct 31, 2023
1 parent 5d81fde commit c5cc6ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hyperfiddle/rcf/reporters.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
;; For js console.
(defmethod t/report [::t/default :hyperfiddle.rcf/pass] [m]
(t/inc-report-counter! :pass)
(js/console.log ""))
(print "")
(string-print "\n")) ; \n seems required to flush in cljs, turning above into println. *shrug*


(defmethod t/report [::t/default :hyperfiddle.rcf/fail] [m]
(t/report (assoc m :type :fail)))
Expand Down

0 comments on commit c5cc6ad

Please sign in to comment.