This adds a hook/event at the beginning of fetchData that would allow external processing to usurp the entire call. I'm using this for test mocking, where we're integrating with a bad API I can't hit from CI. So I match against the request and conditionally return static data instead. My listener looks something like the below (for reference only).
This adds a hook/event at the beginning of
fetchData
that would allow external processing to usurp the entire call. I'm using this for test mocking, where we're integrating with a bad API I can't hit from CI. So I match against the request and conditionally return static data instead. My listener looks something like the below (for reference only).