chore: remove container registration name (#9137)

This commit is contained in:
Carlos R. L. Rodrigues
2024-09-16 06:22:24 -03:00
committed by GitHub
parent ab4a422fc8
commit 950cf9af79
421 changed files with 1528 additions and 2496 deletions
@@ -1,5 +1,5 @@
import { ICustomerModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/utils"
import { Modules } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import {
generatePublishableKey,
@@ -21,9 +21,7 @@ medusaIntegrationTestRunner({
beforeAll(async () => {
appContainer = getContainer()
customerModuleService = appContainer.resolve(
ModuleRegistrationName.CUSTOMER
)
customerModuleService = appContainer.resolve(Modules.CUSTOMER)
})
beforeEach(async () => {
@@ -1,9 +1,6 @@
import { IAuthModuleService } from "@medusajs/types"
import {
ContainerRegistrationKeys,
ModuleRegistrationName,
} from "@medusajs/utils"
import { ContainerRegistrationKeys, Modules } from "@medusajs/utils"
import jwt from "jsonwebtoken"
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import {
@@ -37,7 +34,7 @@ medusaIntegrationTestRunner({
// TODO: Reenable once the customer authentication is fixed, and use the HTTP endpoints instead.
it.skip("should create a customer", async () => {
const authService: IAuthModuleService = appContainer.resolve(
ModuleRegistrationName.AUTH
Modules.AUTH
)
const { http } = appContainer.resolve(
ContainerRegistrationKeys.CONFIG_MODULE
@@ -1,5 +1,5 @@
import { ICustomerModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/utils"
import { Modules } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import {
generatePublishableKey,
@@ -21,9 +21,7 @@ medusaIntegrationTestRunner({
beforeAll(async () => {
appContainer = getContainer()
customerModuleService = appContainer.resolve(
ModuleRegistrationName.CUSTOMER
)
customerModuleService = appContainer.resolve(Modules.CUSTOMER)
})
beforeEach(async () => {
@@ -1,5 +1,5 @@
import { ICustomerModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/utils"
import { Modules } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import {
generatePublishableKey,
@@ -21,9 +21,7 @@ medusaIntegrationTestRunner({
beforeAll(async () => {
appContainer = getContainer()
customerModuleService = appContainer.resolve(
ModuleRegistrationName.CUSTOMER
)
customerModuleService = appContainer.resolve(Modules.CUSTOMER)
})
beforeEach(async () => {
@@ -1,5 +1,5 @@
import { ICustomerModuleService } from "@medusajs/types"
import { ModuleRegistrationName } from "@medusajs/utils"
import { Modules } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import {
generatePublishableKey,
@@ -21,9 +21,7 @@ medusaIntegrationTestRunner({
beforeAll(async () => {
appContainer = getContainer()
customerModuleService = appContainer.resolve(
ModuleRegistrationName.CUSTOMER
)
customerModuleService = appContainer.resolve(Modules.CUSTOMER)
})
beforeEach(async () => {