Hacker News new | ask | show | jobs
by johtso 1191 days ago
How do I test my jobs?

Is there a local runtime a-la miniflare?

Or do I have to deploy and then run my unit tests against your APIs?

1 comments

Locally (without `DEFER_TOKEN` environment variable), your functions run synchronously, but apart from this, you get the same API behavior (arguments serialization, execution id, etc.).
This is fantastic! I was hoping it would "just work" and seems like it does! Unless I missed it I think the docs should explain this. It would definitely be a selling point for me compared with having to run a local server like with Temporal.
That was one of my questions too. Without a local execution for fallback there are all sorts of problems with this, especially in development.