chore: improve mikro orm serializer circular ref and link serialization (#9411)
This commit is contained in:
@@ -1277,16 +1277,10 @@ medusaIntegrationTestRunner({
|
||||
expect.objectContaining({
|
||||
id: expect.stringMatching(/^optval_*/),
|
||||
value: "large",
|
||||
option: expect.objectContaining({
|
||||
title: "size",
|
||||
}),
|
||||
}),
|
||||
expect.objectContaining({
|
||||
id: expect.stringMatching(/^optval_*/),
|
||||
value: "green",
|
||||
option: expect.objectContaining({
|
||||
title: "color",
|
||||
}),
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
@@ -1557,9 +1551,6 @@ medusaIntegrationTestRunner({
|
||||
expect.objectContaining({
|
||||
id: expect.stringMatching(/^optval_*/),
|
||||
value: "large",
|
||||
option: expect.objectContaining({
|
||||
title: "size",
|
||||
}),
|
||||
}),
|
||||
]),
|
||||
origin_country: null,
|
||||
@@ -2660,9 +2651,6 @@ medusaIntegrationTestRunner({
|
||||
updatedProduct.variants.find((v) => v.id === baseVariant.id).options
|
||||
).toEqual([
|
||||
expect.objectContaining({
|
||||
option: expect.objectContaining({
|
||||
title: "size",
|
||||
}),
|
||||
value: "small",
|
||||
}),
|
||||
])
|
||||
@@ -2692,15 +2680,9 @@ medusaIntegrationTestRunner({
|
||||
expect(updatedOptions).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
option: expect.objectContaining({
|
||||
title: "size",
|
||||
}),
|
||||
value: "small",
|
||||
}),
|
||||
expect.objectContaining({
|
||||
option: expect.objectContaining({
|
||||
title: "color",
|
||||
}),
|
||||
value: "green",
|
||||
}),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user