Fork me on GitHub
#clojurescript
<
2021-04-05
>
Clément Ronzon15:04:10

Hey gals and guys, Is there a way to obtain the context of a test from within the :before function registered via cljs.test/use-fixtures? I am using re-frame and I'd like to mock all the event handlers except the one being tested.

mikethompson22:04:56

@U01EGMY9273 I'm not answering your question directly, but perhaps have a look at what re-frame-test supplies.

Clément Ronzon23:04:53

Thanks Mike, I did look at it but wasn't able to find anything like so. I ll change the approach.