mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 13:58:29 +02:00
Fix and restructure tests.
This commit is contained in:
parent
0326c02c05
commit
967b67f0b1
5 changed files with 48 additions and 43 deletions
22
test/uxbox/tests/main.cljs
Normal file
22
test/uxbox/tests/main.cljs
Normal file
|
@ -0,0 +1,22 @@
|
|||
(ns uxbox.tests.main
|
||||
(:require [cljs.test :as test]
|
||||
[uxbox.tests.geom-types]
|
||||
[uxbox.tests.shapes-state]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
||||
(defn main
|
||||
[]
|
||||
(test/run-tests
|
||||
(test/empty-env)
|
||||
'uxbox.tests.geom-types
|
||||
'uxbox.tests.shapes-state
|
||||
))
|
||||
|
||||
(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)
|
Loading…
Add table
Add a link
Reference in a new issue