fix(core-flows): pass metadata on order fulfillment create (#9974)

CLOSES SUP-109
CLOSES https://github.com/medusajs/medusa/issues/9964
This commit is contained in:
Frane Polić
2024-11-07 20:13:44 +01:00
committed by GitHub
parent 576da17da3
commit af9eec73df
2 changed files with 5 additions and 0 deletions

View File

@@ -372,6 +372,7 @@ medusaIntegrationTestRunner({
],
no_notification: false,
location_id: undefined,
metadata: { meta_key: "meta_value" },
}
await createOrderFulfillmentWorkflow(container).run({
@@ -406,6 +407,9 @@ medusaIntegrationTestRunner({
expect(orderFulfillItemWithInventory.detail.fulfilled_quantity).toEqual(
1
)
expect(orderFulfill.fulfillments[0].metadata).toEqual({
meta_key: "meta_value",
})
const reservation = await inventoryModule.listReservationItems({
line_item_id: itemWithInventory.id,