@lee has joined the channel
@dorab has joined the channel
a demonstration of set-ns-context!
(ns lazytest.context-namespace-test
(:require
[lazytest.core :refer [around before-each defdescribe expect-it
set-ns-context!]]))
(def state (volatile! ::baseline))
(set-ns-context!
[(around [f] (vreset! state []) (f) (vreset! state ::around-after))
(before-each (vswap! state conj :before-each))])
(defdescribe context-namespace-test
(expect-it "works"
(= [:before-each] @state)))there are some better demonstrations I want to write