cljs.test/inc-report-counter!

functionsince v0.0-2496Edit
(inc-report-counter! name)

Source docstring:
Increments the named counter in *report-counters*, a ref to a map.
Does nothing if *report-counters* is nil.
Source code @ clojurescript:src/main/cljs/cljs/test.cljs
(defn inc-report-counter!
  [name]
  (if (:report-counters (get-current-env))
    (update-current-env! [:report-counters name] (fnil inc 0))))