Skip to content

Commit 971a464

Browse files
author
dnolen
committed
failing test case for CLJS-1537
1 parent 17e167e commit 971a464

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/test/cljs/circular_deps/a.cljs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(ns circular-deps.a
2+
(:require [circular-deps.b]))
3+
4+
(defn foo [a b]
5+
(+ a b))

src/test/cljs/circular_deps/b.cljs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
(ns circular-deps.b
2+
(:require [circular-deps.a]))
3+
4+
(defn bar [c d]
5+
(* c d))

src/test/clojure/cljs/build_api_tests.clj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,12 @@
145145
(is (re-find #"Loading modules A and B" (slurp module-main)))
146146
(is (re-find #"Module A loaded" (slurp module-a)))
147147
(is (re-find #"Module B loaded" (slurp module-b)))))
148+
149+
(deftest cljs-1537-circular-deps
150+
(let [out-file (io/file "out/main.js")]
151+
(.delete out-file)
152+
(build (inputs "src/test/cljs")
153+
{:main 'circular-deps.a
154+
:optimizations :none
155+
:verbose true
156+
:output-to "out"})))

0 commit comments

Comments
 (0)