testcontainers-clj/dev-src/user.clj
Rob Hanlon f8de89708d Configure clojure.spec, add a few specs
Creates specs for init, create, and init-network
2020-08-09 20:05:13 -07: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))))