5 ms·
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?
by johtso 4y 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?
- gearnode 4y agoLocally (without `DEFER_TOKEN` environment variable), your functions run synchronously, but apart from this, you get the same API behavior (arguments serialization, execution id, etc.).
- johtso 4y agoThis 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.
- bayesian_horse 4y agoThat was one of my questions too. Without a local execution for fallback there are all sorts of problems with this, especially in development.