0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00
penpot/test/uxbox/test_runner.cljs
2016-02-02 21:33:32 +02:00

20 lines
411 B
Clojure

(ns uxbox.test-runner
(:require [cljs.test :as test]
[uxbox.data.workspace-tests]))
(enable-console-print!)
(defn main
[]
(test/run-tests
(test/empty-env)
'uxbox.data.workspace-tests
))
(defmethod test/report [:cljs.test/default :end-run-tests]
[m]
(if (test/successful? m)
(set! (.-exitCode js/process) 0)
(set! (.-exitCode js/process) 1)))
(set! *main-cli-fn* main)