Skip to content

0.5.1

Compare
Choose a tag to compare
@b4rtaz b4rtaz released this 16 Sep 19:28
· 6 commits to main since this release
283834b

This version adds a new feature to the fork activity. Now it's possible to skip all branches. The handler of the fork activity should return a value returned by the skip() function.

createForkActivity<BranchedStep, TestGlobalState>('if', {
  init: () => ({ /* ... */ }),
  handler: async (step, globalState, activityState) => {
    // ...
    return skip();
  }
})