chore(index): return ids only (#12543)
This commit is contained in:
committed by
GitHub
parent
fca5ad77b4
commit
ebe5cc7acd
@@ -175,7 +175,18 @@ medusaIntegrationTestRunner({
|
||||
},
|
||||
},
|
||||
],
|
||||
prices: expect.arrayContaining([]),
|
||||
prices: expect.arrayContaining([
|
||||
{
|
||||
currency_code: "CAD",
|
||||
amount: 20,
|
||||
id: expect.any(String),
|
||||
},
|
||||
{
|
||||
currency_code: "USD",
|
||||
amount: 80,
|
||||
id: expect.any(String),
|
||||
},
|
||||
]),
|
||||
},
|
||||
{
|
||||
sku: "extra-variant-1",
|
||||
|
||||
@@ -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",
|
||||
}),
|
||||
])
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user