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:
Adrien de Peretti
2023-08-09 14:33:04 +00:00
committed by GitHub
parent 86c314eb2a
commit ac866ebb51
21 changed files with 391 additions and 193 deletions
@@ -1,2 +1 @@
export * from "./create-products-prepare-create-prices-compensation"
export * from "./create-products-prepare-data"
@@ -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"