chore(inventory): convert to dml (#10569)

Fixes: FRMW-2848

Co-authored-by: Harminder Virk <1706381+thetutlage@users.noreply.github.com>
This commit is contained in:
Carlos R. L. RodriguesandHarminder Virk authored and GitHub committed 2024-12-13 12:51:26 +00:00
1 parent ae1d875fcf
commit 729eb5da7b
33 files changed
+662 -593

No files matched your search

@@ -229,6 +229,29 @@ moduleIntegrationTestRunner<IInventoryService>({
expect(inventoryLevel).toEqual(
expect.objectContaining({ id: expect.any(String), ...data })
)
const getItems = await service.listInventoryItems(
{},
{
select: [
"id",
"sku",
"origin_country",
"reserved_quantity",
"stocked_quantity",
],
}
)
expect(getItems).toEqual([
{
id: inventoryItem.id,
sku: "test-sku",
origin_country: "test-country",
reserved_quantity: 0,
stocked_quantity: 2,
},
])
})
it("should create inventoryLevels from array", async () => {