BookatlasTwo-Day MuleSoft → Salesforce Bootcamp
42 / 81 · Module 13 — MUnit · filtered: interview← prev⊞ allnext →

13.3Basic MUnit test structure

Conceptually:

<munit:test name="customer-flow-test">

    <munit:behavior>
        <!-- mocks -->
    </munit:behavior>

    <munit:execution>
        <!-- invoke production flow -->
    </munit:execution>

    <munit:validation>
        <!-- assertions -->
    </munit:validation>

</munit:test>

Mentally map this to Playwright/Jest:

test('customer flow', async () => {

    // arrange / mocks

    // act

    // assert
});

This should feel very familiar.