Skip to content

Commit

Permalink
Add make test-cljs target
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinqian00 committed Feb 3, 2022
1 parent dd914c4 commit 1f8cfab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.phony: test-clj test-cov

# TODO: test-cljs

test-clj:
clojure -X:test:run-clj

test-cljs:
clojure -M:test:run-cljs

test-cov:
clojure -X:test:run-cov

ci: test-clj test-cov
ci: test-clj test-cljs test-cov
3 changes: 3 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
:git/sha "b3fd0d2"}}}
:run-clj {:exec-fn cognitect.test-runner.api/test
:exec-args {:dirs ["src/test"]}}
:run-cljs {;; -X is not supported here yet
:main-opts ["-m" "cljs-test-runner.main"
"-d" "src/test"]}
:run-cov {:exec-fn cloverage.coverage/run-project
:exec-args {:src-ns-path ["src/main"]
:test-ns-path ["src/test"]}}}}

0 comments on commit 1f8cfab

Please sign in to comment.