BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
10 / 18 · Module 13 — MUnit · filtered: cheatsheet← prev⊞ allnext →

13.7Then execute the real flow

<munit:execution>

    <flow-ref name="process-customer-flow"/>

</munit:execution>

Everything in:

process-customer-flow

runs normally except the mocked Salesforce operation.

That's very similar to:

salesforce.upsert = jest.fn()
    .mockResolvedValue(...);

await processCustomer();