chore: complete cart part 2 (#7227)

This commit is contained in:
Carlos R. L. Rodrigues
2024-05-05 10:35:09 -03:00
committed by GitHub
parent c32a31e139
commit aba194de9a
24 changed files with 344 additions and 321 deletions

View File

@@ -415,10 +415,12 @@ medusaIntegrationTestRunner({
expect(errors).toEqual([
{
action: "confirm-inventory-step",
action: "confirm-item-inventory-as-step",
handlerType: "invoke",
error: expect.objectContaining({
message: "Some variant does not have the required inventory",
message: expect.stringContaining(
"Some variant does not have the required inventory"
),
}),
},
])
@@ -707,10 +709,13 @@ medusaIntegrationTestRunner({
expect(errors).toEqual([
{
action: "confirm-inventory-step",
action: "confirm-item-inventory-as-step",
handlerType: "invoke",
error: expect.objectContaining({
message: `Variants with IDs ${product.variants[0].id} do not have a price`,
// TODO: FIX runAsStep nested errors
message: expect.stringContaining(
`Variants with IDs ${product.variants[0].id} do not have a price`
),
}),
},
])

View File

@@ -83,7 +83,7 @@ medusaIntegrationTestRunner({
})
describe("POST /store/carts", () => {
it.skip("should create a cart", async () => {
it("should create a cart", async () => {
const region = await regionModule.create({
name: "US",
currency_code: "usd",