Fork me on GitHub
#clojure-spec
<
2018-08-09
>
triss14:08:40

Is there an easy way to flush the clojure spec library? I’m refactoring and am never sure I’ve got ll my specs right until I restart clojure.

favila14:08:49

reset! the registry to empty then re-evaluate all namespaces with specs in them?

👍 8
triss14:08:24

ah ok. Just reset an atom… but where is the registry atom?

favila15:08:15

(reset! @#'clojure.spec.alpha/registry-ref {}) ?

favila15:08:10

it's private so you do need to do some poking