Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/test/cljs_build/trivial/core5.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(ns trivial.core5)

(.log js/console {})
13 changes: 13 additions & 0 deletions src/test/clojure/cljs/build_api_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,19 @@
(build/build (build/inputs (io/file inputs "trivial/core4.cljs")) opts cenv)
(is (< (.length out-file) 32768))))

(deftest trivial-output-size-map
(let [out (.getPath (io/file (test/tmp-dir) "trivial-output-map-test-out"))
out-file (io/file out "main.js")
{:keys [inputs opts]} {:inputs (str (io/file "src" "test" "cljs_build"))
:opts {:main 'trivial.core5
:output-dir out
:output-to (.getPath out-file)
:optimizations :advanced}}
cenv (env/default-compiler-env)]
(test/delete-out-files out)
(build/build (build/inputs (io/file inputs "trivial/core5.cljs")) opts cenv)
(is (< (.length out-file) 92160))))

(deftest cljs-3255-nil-inputs-build
(let [out (.getPath (io/file (test/tmp-dir) "3255-test-out"))
out-file (io/file out "main.js")
Expand Down