[CCONTRACTS-2] Does clojurescript support work for core.contracts? Created: 06/Sep/13 Updated: 06/Sep/13
I have a pedestal app I am working on. I have made some really helpful (at least to me) use of core.contracts in testing my clojure/clojurescript shared code (in clojure) using test.generative. When I open my code in the browser though and try to bring a namespace that makes use of core.contracts into clojurescript, I get the following error. None of the constraints I wrote actually make use of any native java types (at least I don't think). I am mostly just checking that the values of things align with what I expect in the inputs and outputs.
In my behavior.clj I have
(ns ^:shared com.samedhi.contracts.app.behavior
which compiles into cljs as
errorMessage: "goog.require could not find: clojure.core.contracts.constraints"
Is there some sort of special way I need to import things within clojurescript to use core.contracts?
BTW, I really appreciate core contracts, it is really neato. Thanks for you work.