chore: improve mikro orm serializer circular ref and link serialization (#9411)

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-10-03 08:22:11 +02:00
1 parent 2d1cf12dac
commit 225d00cd09
12 files changed
+142 -105

No files matched your search

@@ -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",
}),
])