chore: remove container registration name (#9137)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2024-09-16 06:22:24 -03:00
1 parent ab4a422fc8
commit 950cf9af79
421 files changed
+1528 -2496

No files matched your search

@@ -18,7 +18,7 @@ jest.setTimeout(30000)
moduleIntegrationTestRunner<IProductModuleService>({
moduleName: Modules.PRODUCT,
injectedDependencies: {
eventBusModuleService: new MockEventBusService(),
[Modules.EVENT_BUS]: new MockEventBusService(),
},
testSuite: ({ MikroOrmWrapper, service }) => {
describe("ProductModuleService product categories", () => {
@@ -12,7 +12,7 @@ jest.setTimeout(30000)
moduleIntegrationTestRunner<IProductModuleService>({
moduleName: Modules.PRODUCT,
injectedDependencies: {
eventBusModuleService: new MockEventBusService(),
[Modules.EVENT_BUS]: new MockEventBusService(),
},
testSuite: ({ MikroOrmWrapper, service }) => {
describe("ProductModuleService product collections", () => {
@@ -3,7 +3,7 @@ import {
ProductCategoryDTO,
ProductTagDTO,
} from "@medusajs/types"
import { kebabCase, Modules, ProductStatus } from "@medusajs/utils"
import { Modules, ProductStatus, kebabCase } from "@medusajs/utils"
import {
Product,
ProductCategory,
@@ -27,7 +27,7 @@ jest.setTimeout(300000)
moduleIntegrationTestRunner<IProductModuleService>({
moduleName: Modules.PRODUCT,
injectedDependencies: {
eventBusModuleService: new MockEventBusService(),
[Modules.EVENT_BUS]: new MockEventBusService(),
},
testSuite: ({ MikroOrmWrapper, service }) => {
describe("ProductModuleService products", function () {
@@ -67,7 +67,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_id",
entity: "Product",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "product",
},
},
@@ -76,7 +76,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_variant_id",
entity: "ProductVariant",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productVariant",
},
variant_id: {
@@ -84,7 +84,7 @@ moduleIntegrationTestRunner<Service>({
entity: "ProductVariant",
linkable: "variant_id",
primaryKey: "variant_id",
serviceName: "productService",
serviceName: "Product",
},
},
productOption: {
@@ -92,7 +92,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_option_id",
entity: "ProductOption",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productOption",
},
},
@@ -101,7 +101,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_type_id",
entity: "ProductType",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productType",
},
},
@@ -110,7 +110,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_image_id",
entity: "ProductImage",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productImage",
},
},
@@ -119,7 +119,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_tag_id",
entity: "ProductTag",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productTag",
},
},
@@ -128,7 +128,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_collection_id",
entity: "ProductCollection",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productCollection",
},
},
@@ -137,7 +137,7 @@ moduleIntegrationTestRunner<Service>({
linkable: "product_category_id",
entity: "ProductCategory",
primaryKey: "id",
serviceName: "productService",
serviceName: "Product",
field: "productCategory",
},
},
@@ -32,6 +32,7 @@ import {
MedusaContext,
MedusaError,
MedusaService,
Modules,
ProductStatus,
promiseAll,
removeUndefined,
@@ -64,7 +65,7 @@ type InjectedDependencies = {
productTypeService: ModulesSdkTypes.IMedusaInternalService<any>
productOptionService: ModulesSdkTypes.IMedusaInternalService<any>
productOptionValueService: ModulesSdkTypes.IMedusaInternalService<any>
eventBusModuleService?: IEventBusModuleService
[Modules.EVENT_BUS]?: IEventBusModuleService
}
export default class ProductModuleService
@@ -129,7 +130,7 @@ export default class ProductModuleService
productTypeService,
productOptionService,
productOptionValueService,
eventBusModuleService,
[Modules.EVENT_BUS]: eventBusModuleService,
}: InjectedDependencies,
protected readonly moduleDeclaration: InternalModuleDeclaration
) {
+1 -1
View File
@@ -2,7 +2,7 @@ import { IEventBusModuleService, Logger, ProductTypes } from "@medusajs/types"
export type InitializeModuleInjectableDependencies = {
logger?: Logger
eventBusModuleService?: IEventBusModuleService
EventBus?: IEventBusModuleService
}
// TODO: remove and cleanup bellow code