BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
182 / 278 · Module 13 — MUnit · filtered: code← 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();