diff --git a/integration-tests/modules/__tests__/workflow-engine/tests.ts b/integration-tests/modules/__tests__/workflow-engine/tests.ts index 3030853d39..4a402d0cbd 100644 --- a/integration-tests/modules/__tests__/workflow-engine/tests.ts +++ b/integration-tests/modules/__tests__/workflow-engine/tests.ts @@ -4,8 +4,8 @@ import { StepResponse, WorkflowData, } from "@medusajs/workflows-sdk" -import { createAdminUser } from "../../../helpers/create-admin-user" import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { createAdminUser } from "../../../helpers/create-admin-user" export const workflowEngineTestSuite = ( env, diff --git a/packages/auth/package.json b/packages/auth/package.json index 3ee677fc8b..c3be5029f4 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/auth/src/services/__tests__/index.spec.ts b/packages/auth/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/auth/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/cart/integration-tests/__tests__/index.spec.ts b/packages/cart/integration-tests/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/cart/integration-tests/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/cart/package.json b/packages/cart/package.json index cd249a8300..b1bc2a7945 100644 --- a/packages/cart/package.json +++ b/packages/cart/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/cart/src/services/__tests__/index.spec.ts b/packages/cart/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/cart/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/customer/package.json b/packages/customer/package.json index b8473ae2b2..e931b47597 100644 --- a/packages/customer/package.json +++ b/packages/customer/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/customer/src/services/__tests__/index.spec.ts b/packages/customer/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/customer/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/fulfillment/package.json b/packages/fulfillment/package.json index 046a9ec290..42191c3a76 100644 --- a/packages/fulfillment/package.json +++ b/packages/fulfillment/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit --passWithNoTests -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --bail --forceExit --passWithNoTests -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial -n InitialSetupMigration", diff --git a/packages/link-modules/package.json b/packages/link-modules/package.json index 6a314732b4..38eb621ea3 100644 --- a/packages/link-modules/package.json +++ b/packages/link-modules/package.json @@ -25,7 +25,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepare": "cross-env NODE_ENV=production yarn run build", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --passWithNoTests --runInBand --bail --forceExit", + "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", "test:integration": "jest --passWithNoTests" }, "devDependencies": { diff --git a/packages/medusa-dev-cli/package.json b/packages/medusa-dev-cli/package.json index ab84fd7632..df4e13c475 100644 --- a/packages/medusa-dev-cli/package.json +++ b/packages/medusa-dev-cli/package.json @@ -43,7 +43,7 @@ }, "scripts": { "prepublishOnly": "cross-env NODE_ENV=production tsc --build", - "test": "jest --passWithNoTests", + "test": "jest --passWithNoTests -- src", "build": "tsc", "watch": "tsc --watch" }, diff --git a/packages/payment/integration-tests/__tests__/index.spec.ts b/packages/payment/integration-tests/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/payment/integration-tests/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/payment/package.json b/packages/payment/package.json index 819e3f05ef..ddf5a449be 100644 --- a/packages/payment/package.json +++ b/packages/payment/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/payment/src/services/__tests__/index.spec.ts b/packages/payment/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/payment/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/promotion/integration-tests/__tests__/index.spec.ts b/packages/promotion/integration-tests/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/promotion/integration-tests/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/promotion/package.json b/packages/promotion/package.json index 5da2ef20f6..9bf32de094 100644 --- a/packages/promotion/package.json +++ b/packages/promotion/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/promotion/src/services/__tests__/index.spec.ts b/packages/promotion/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/promotion/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/region/package.json b/packages/region/package.json index c3160838e2..dd8d00bee2 100644 --- a/packages/region/package.json +++ b/packages/region/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/region/src/services/__tests__/index.spec.ts b/packages/region/src/services/__tests__/index.spec.ts deleted file mode 100644 index 1691dbec45..0000000000 --- a/packages/region/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,6 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) - }) - \ No newline at end of file diff --git a/packages/user/package.json b/packages/user/package.json index c015f94be9..932948be3e 100644 --- a/packages/user/package.json +++ b/packages/user/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/user/src/services/__tests__/index.spec.ts b/packages/user/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/user/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/workflow-engine-inmemory/package.json b/packages/workflow-engine-inmemory/package.json index 1be8902dee..51af27609e 100644 --- a/packages/workflow-engine-inmemory/package.json +++ b/packages/workflow-engine-inmemory/package.json @@ -25,7 +25,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/workflow-engine-inmemory/src/services/__tests__/index.spec.ts b/packages/workflow-engine-inmemory/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/workflow-engine-inmemory/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -}) diff --git a/packages/workflow-engine-redis/package.json b/packages/workflow-engine-redis/package.json index 3220b8a73f..4e6c27f262 100644 --- a/packages/workflow-engine-redis/package.json +++ b/packages/workflow-engine-redis/package.json @@ -25,7 +25,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json", "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate", "migration:initial": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:create --initial", diff --git a/packages/workflow-engine-redis/src/services/__tests__/index.spec.ts b/packages/workflow-engine-redis/src/services/__tests__/index.spec.ts deleted file mode 100644 index 728f6245c6..0000000000 --- a/packages/workflow-engine-redis/src/services/__tests__/index.spec.ts +++ /dev/null @@ -1,5 +0,0 @@ -describe("Noop test", () => { - it("noop check", async () => { - expect(true).toBe(true) - }) -})