test(): Test the create product workflow compensation (#4716)
**What** Integration tests to validate the workflow compensation. Also, fix the transaction state when the workflow is compensating and some steps does not have any compensation
This commit is contained in:
@@ -1,2 +1 @@
|
||||
export * from "./create-products-prepare-create-prices-compensation"
|
||||
export * from "./create-products-prepare-data"
|
||||
|
||||
-2
@@ -28,7 +28,6 @@ export type CreateProductsPreparedData = {
|
||||
ProductHandle,
|
||||
VariantIndexAndPrices[]
|
||||
>
|
||||
config?: WorkflowTypes.CommonWorkflow.WorkflowInputConfig
|
||||
}
|
||||
|
||||
export async function createProductsPrepareData({
|
||||
@@ -145,7 +144,6 @@ export async function createProductsPrepareData({
|
||||
productsHandleShippingProfileIdMap,
|
||||
productsHandleSalesChannelsMap,
|
||||
productsHandleVariantsIndexPricesMap,
|
||||
config: data.config,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./create-products-prepare-data"
|
||||
export * from "./create-products"
|
||||
export * from "./detach-sales-channel-from-products"
|
||||
export * from "./attach-sales-channel-to-products"
|
||||
|
||||
Reference in New Issue
Block a user