chore(medusa): clear workflow execution (#11200)

CLOSES: SUP-704
This commit is contained in:
Carlos R. L. Rodrigues
2025-02-03 10:47:32 +00:00
committed by GitHub
parent a76cf3e8f5
commit c8376a9f15
13 changed files with 163 additions and 20 deletions
@@ -341,7 +341,9 @@ moduleIntegrationTestRunner<IWorkflowEngineService>({
})
it("should execute a scheduled workflow", async () => {
const spy = createScheduled("standard")
const spy = createScheduled("standard", {
cron: "0 0 * * * *", // Jest issue: clearExpiredExecutions runs every hour, this is scheduled to run every hour to match the number of calls
})
await jest.runOnlyPendingTimersAsync()
expect(spy).toHaveBeenCalledTimes(1)