fix: fix weight/length/height/width types in updates (#12500)

This commit is contained in:
Pedro Guzman
2025-05-16 10:16:43 +02:00
committed by GitHub
parent 04acc5d219
commit 2affc0d7d9
3 changed files with 34 additions and 0 deletions

View File

@@ -3043,12 +3043,20 @@ medusaIntegrationTestRunner({
describe("batch methods", () => {
it("successfully creates, updates, and deletes products", async () => {
const createPayload = getProductFixture({
weight: 100,
length: 200,
height: 300,
width: 400,
title: "Test batch create",
handle: "test-batch-create",
shipping_profile_id: shippingProfile.id,
})
const updatePayload = {
weight: 101,
length: 201,
height: 301,
width: 401,
id: publishedProduct.id,
title: "Test batch update",
}