Can someone shed some light to this? I’m trying to use
orchestra-cljs.spec.test/instrument to keep my re-frame subscriptions in check.
I have a re-frame subscription and a function (it totally gets called - I can see
console.log showing things when component renders). I wrote an
fdef that I deliberately made a wrong spec -
:args is wrong,
:ret - is a bad spec.
When I call
instrument - it returns a vector and that
fdef is listed there.
When I call that function manually - the spec fails (as expected)
However, when the sub is called from within the component - it simply ignores instrumentation.
Why would this happen? Can I “force” re-frame to validate things that need to be validated automatically? Without me having to manually call each instrumented fn?