chore(index): return ids only (#12543)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2025-05-20 11:16:02 -03:00
1 parent fca5ad77b4
commit ebe5cc7acd
12 files changed
+92 -16

No files matched your search

@@ -4,12 +4,12 @@ import {
batchProductVariantsWorkflow,
batchProductVariantsWorkflowId,
} from "@medusajs/core-flows"
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import {
IFulfillmentModuleService,
IProductModuleService,
} from "@medusajs/types"
import { Modules } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
jest.setTimeout(50000)
@@ -165,14 +165,16 @@ medusaIntegrationTestRunner({
})
expect(product.variants).toHaveLength(2)
expect(product.variants).toEqual([
expect.objectContaining({
title: "variant1",
}),
expect.objectContaining({
title: "variant2",
}),
])
expect(product.variants).toEqual(
expect.arrayContaining([
expect.objectContaining({
title: "variant1",
}),
expect.objectContaining({
title: "variant2",
}),
])
)
})
})
})