ClojureScript

Make clojure.spec.alpha reloadable

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code
  • Approval:
    Accepted

Description

When reloading clojure.spec.alpha (stest/instrument) no longer instruments spec'ed functions.

Repro:

$ clj -m cljs.main -re node -r
cljs.user=> (require '[clojure.spec.alpha :as s])
nil
cljs.user=> (defn foo [x])
#'cljs.user/foo
cljs.user=> (s/fdef foo :args (s/cat :x int?))
cljs.user/foo
cljs.user=> (require '[clojure.spec.test.alpha :as stest])
nil
cljs.user=> (require '[clojure.spec.alpha :as s] :reload)
nil
cljs.user=> (stest/instrument)
[]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: