Can I force metadata with the createCaller?
I have custom metadata which I check within the middleware. Im trying to write tests for this. Currently no single procedure is using the meta and I wonder If I can test this somehow. Can I add meta on the fly to the procedure with createCaller??
4 Replies
If you're testing the middleware, why not create a procedure just for the test? Then you can write whatever metadata you want
But I would create that procedure like a normal one (something like empty procedure?) or inside the test itself?
However you like, you just need your t instance with your types on and you can create a router for testing
Could you give me an example how that would look like. Im bit confused
Ok nwm I got it ! Thank you