Testing Netlify Functions run on Events

What would be the best way, if any, to test Netlify Functions being run on events? Right now I’m trying to test deploy-succeeded, and my site takes about 5 minutes to build which makes it a bit painful. I’m able to run ntl dev and hit my funciton locally, but it doesn’t have the event data I expect for deploy succeeded so it’s not a good test.

You can create a function locally and feed it the same payload as that of the event. Am I missing something?

As I said, I don’t have the event data. I thought perhaps there may be a way via the CLI that I haven’t seen to mock these events. The docs (Trigger functions on events | Netlify Docs) show the high level shape of what is sent, but doesn’t have an example of the payload value.

You can use webhook.site and point the Netlify webhook to that URL to get the event data to test it.