I will look into using heartbeating to refactor this in the future.
In the meantime, I had a couple follow up question about using SetStartWorkflowOptions.
When I try to supply arguments to the method, it seems to want the arguments to be typed to the internal.StartWorkflowOptions type, which doesn’t appear to be doable/recommended.
How would I define this helper to avoid the internal problem?
Also, the setting is bound to the s.env scope, but not seeing how to associate the workflowOptions just with one workflow registered in the test. What would happen if I registered multiple workflows in the test?