Skip to content

Commit

Permalink
* advanced compiled tests for CLJS
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Sep 28, 2024
1 parent 4e8d0ae commit 46a8e57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
"-d" "src/test/clojure"]}
:cljs
{:extra-deps {org.clojure/clojurescript {:mvn/version "1.11.132"}}
:main-opts ["-m" "cljs.main" "-re" "node" "-r"]}}}
:main-opts ["-m" "cljs.main" "-re" "node" "-r"]}
:cljs-build
{:extra-deps {org.clojure/clojurescript {:mvn/version "1.11.132"}}
:main-opts ["-m" "cljs.main" "-v" "-O" "advanced" "-o" "target/test.js" "-c" "clojure.core.unify-test-runner"]}}}
16 changes: 16 additions & 0 deletions src/test/clojure/clojure/core/unify_test_runner.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
; which can be found in the file epl-v10.html at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.

(ns ^{:doc "A unification library for Clojure."
:author "Michael Fogus"}
clojure.core.unify-test-runner
(:require [clojure.core.unify-test]
[clojure.test :refer [run-tests]]))

(run-tests
'clojure.core.unify-test)

0 comments on commit 46a8e57

Please sign in to comment.