cljs
files were not included in the release jar.assert-expr
implementation for spy.core/call-matching?
.assert-expr
implementations.shadow-cljs
.spy.test
to register spy functions with clojure.test/assert-expr
resulting in better error messages. This can be used instead of spy.assert
which will likely be deprecated in the longer term in favour of assert-expr
.spy.protocol/spy
to work as a spy, the previous implementation was not really a spy as it didn't proxy to a real implementation. You now need to provide a protocol and an implementation of the protocol to spy on.2.0.0
)called-n-times-with?
call-matching?
so users can provide their own matching fn
.reify
instead of defrecord
. This introduces a breaking change as spies are now added to the reified object as metadata so must be extracted before assertions can happen on them, see the README or tests for an example.Can you improve this documentation? These fine people already did:
Alex King & Rob HanlonEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close