@@ -95,7 +95,7 @@ Object {
|
||||
"metadata": null,
|
||||
"option_id": "test-option",
|
||||
"updated_at": Any<String>,
|
||||
"value": "Default variant",
|
||||
"value": Any<String>,
|
||||
"variant_id": "test-variant",
|
||||
},
|
||||
],
|
||||
@@ -187,7 +187,7 @@ Object {
|
||||
"metadata": null,
|
||||
"option_id": Any<String>,
|
||||
"updated_at": Any<String>,
|
||||
"value": "Practical",
|
||||
"value": Any<String>,
|
||||
"variant_id": Any<String>,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -225,6 +225,7 @@ describe("/store/variants", () => {
|
||||
{
|
||||
created_at: expect.any(String),
|
||||
updated_at: expect.any(String),
|
||||
value: expect.any(String),
|
||||
},
|
||||
],
|
||||
prices: [
|
||||
@@ -361,6 +362,7 @@ describe("/store/variants", () => {
|
||||
id: expect.any(String),
|
||||
option_id: expect.any(String),
|
||||
variant_id: expect.any(String),
|
||||
value: expect.any(String),
|
||||
},
|
||||
],
|
||||
prices: [
|
||||
|
||||
@@ -7,8 +7,6 @@ import {
|
||||
ShippingProfileType,
|
||||
Store,
|
||||
} from "@medusajs/medusa"
|
||||
import faker from "faker"
|
||||
import { DataSource } from "typeorm"
|
||||
import {
|
||||
ProductVariantFactoryData,
|
||||
simpleProductVariantFactory,
|
||||
@@ -18,6 +16,9 @@ import {
|
||||
simpleSalesChannelFactory,
|
||||
} from "./simple-sales-channel-factory"
|
||||
|
||||
import { DataSource } from "typeorm"
|
||||
import faker from "faker"
|
||||
|
||||
export type ProductFactoryData = {
|
||||
id?: string
|
||||
is_giftcard?: boolean
|
||||
|
||||
+1
-1
@@ -2533,4 +2533,4 @@ Object {
|
||||
"tracking_links": Array [],
|
||||
"tracking_number": "",
|
||||
}
|
||||
`;
|
||||
`;
|
||||
Reference in New Issue
Block a user