testcontainers-clj/dev-src/user.clj
Rob Hanlon c0c08b2e26
Configure clojure.spec, add a few specs (#23)
Creates specs for init, create, and init-network
2020-08-10 08:15:00 +02:00

14 lines
375 B
Clojure

(ns user
(:require
[clojure.spec.alpha :as s]
[expound.alpha :as ea]
[kaocha.repl]))
(try
;; Attempt to set *explain-out*, assuming that we're inside of
;; a binding context...
(set! s/*explain-out* ea/printer)
(catch IllegalStateException _
;; ...if not, just alter the root binding.
(alter-var-root #'s/*explain-out* (constantly ea/printer))))