We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a3609 commit f88fa62Copy full SHA for f88fa62
src/test/clojure/cljs/build_api_tests.clj
@@ -171,14 +171,15 @@
171
(test/delete-out-files out)
172
(try
173
(build/build (build/inputs
174
- (io/file (str root "a.cljs"))
175
- (io/file (str root "b.cljs")))
+ (io/file root "circular_deps" "a.cljs")
+ (io/file root "circular_deps" "b.cljs"))
176
{:main 'circular-deps.a
177
:optimizations :none
178
:output-to out})
179
(is false)
180
(catch Throwable e
181
- (is true)))))
+ (is (re-find #"Circular dependency detected, circular-deps.a -> circular-deps.b -> circular-deps.a"
182
+ (.getMessage (.getCause e))))))))
183
184
(defn loader-test-project [output-dir]
185
{:inputs (str (io/file "src" "test" "cljs_build" "loader_test"))
0 commit comments