crisptrutski / boot-cljs-test

Boot task to run ClojureScript tests.
53 stars 18 forks source link

Unable to set :closure-defines with the cljs-opts parameter #52

Closed binarykitchen closed 7 years ago

binarykitchen commented 7 years ago

Tried to pass on some closure definitions to the cljs compiler like that

        (test-cljs :js-env :phantom
                   :cljs-opts {:compiler-options {:closure-defines {"PORT" 1234
                                                                                                   "HOST" "just.a.test.host"}}})))

also tried with

        (test-cljs :js-env :phantom
                   :cljs-opts {:closure-defines {"PORT" 1234
                                                                   "HOST" "just.a.test.host"}}})))

When running the tests, these constants aren't defined at all. Am I missing something?

binarykitchen commented 7 years ago

apologises. just double checked and it works when using :cljs-opts {:closure-defines {"PORT" 1234 ...