From d4d1f9b2f21d788c5b9c8c187c8895b02128da22 Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Wed, 27 Mar 2024 16:39:20 +0100 Subject: [PATCH] fix: integration tests modules expectations (#6848) **What** - fix tests - cleanup deprecated jest conf --- .../promotion/admin/list-promotions.spec.ts | 7 +++---- .../promotion/admin/retrieve-campaign.spec.ts | 1 - packages/admin-ui/jest.config.js | 2 +- packages/api-key/jest.config.js | 2 +- packages/auth/jest.config.js | 2 +- packages/cache-inmemory/jest.config.js | 2 +- packages/cache-redis/jest.config.js | 2 +- packages/cart/jest.config.js | 2 +- packages/core-flows/jest.config.js | 2 +- packages/currency/jest.config.js | 2 +- packages/customer/jest.config.js | 2 +- packages/event-bus-local/jest.config.js | 2 +- packages/event-bus-redis/jest.config.js | 2 +- packages/inventory-next/jest.config.js | 2 +- packages/inventory/jest.config.js | 2 +- packages/link-modules/jest.config.js | 2 +- packages/medusa-cli/jest.config.js | 2 +- packages/medusa-core-utils/jest.config.js | 2 +- packages/medusa-dev-cli/jest.config.js | 2 +- packages/modules-sdk/jest.config.js | 2 +- .../openapi-typescript-codegen/jest.config.js | 2 +- packages/orchestration/jest.config.js | 2 +- packages/order/jest.config.js | 2 +- packages/payment/jest.config.js | 2 +- .../pricing-module/price-list.spec.ts | 21 ------------------- .../services/pricing-module/rule-type.spec.ts | 3 ++- packages/pricing/jest.config.js | 2 +- .../promotion-module/campaign.spec.ts | 1 - .../promotion-module/promotion.spec.ts | 1 - packages/promotion/jest.config.js | 2 +- packages/region/jest.config.js | 2 +- packages/sales-channel/jest.config.js | 2 +- packages/stock-location-next/jest.config.js | 2 +- packages/stock-location/jest.config.js | 2 +- packages/store/jest.config.js | 2 +- packages/user/jest.config.js | 2 +- packages/utils/jest.config.js | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 ++ .../workflow-engine-inmemory/jest.config.js | 2 +- packages/workflow-engine-redis/jest.config.js | 2 +- packages/workflows-sdk/jest.config.js | 2 +- 41 files changed, 41 insertions(+), 63 deletions(-) diff --git a/integration-tests/modules/__tests__/promotion/admin/list-promotions.spec.ts b/integration-tests/modules/__tests__/promotion/admin/list-promotions.spec.ts index db3e75fbed..0dc0ae8b93 100644 --- a/integration-tests/modules/__tests__/promotion/admin/list-promotions.spec.ts +++ b/integration-tests/modules/__tests__/promotion/admin/list-promotions.spec.ts @@ -37,7 +37,7 @@ medusaIntegrationTestRunner({ application_method: { type: "fixed", target_type: "order", - value: "100", + value: 100, }, }, ]) @@ -69,14 +69,14 @@ medusaIntegrationTestRunner({ }) it("should get all promotions and its count filtered", async () => { - const [createdPromotion] = await promotionModuleService.create([ + await promotionModuleService.create([ { code: "TEST", type: PromotionType.STANDARD, application_method: { type: "fixed", target_type: "order", - value: "100", + value: 100, }, }, ]) @@ -95,7 +95,6 @@ medusaIntegrationTestRunner({ created_at: expect.any(String), application_method: { id: expect.any(String), - promotion: expect.any(Object), }, }, ]) diff --git a/integration-tests/modules/__tests__/promotion/admin/retrieve-campaign.spec.ts b/integration-tests/modules/__tests__/promotion/admin/retrieve-campaign.spec.ts index 73bc6da008..0e3effb38b 100644 --- a/integration-tests/modules/__tests__/promotion/admin/retrieve-campaign.spec.ts +++ b/integration-tests/modules/__tests__/promotion/admin/retrieve-campaign.spec.ts @@ -75,7 +75,6 @@ medusaIntegrationTestRunner({ ends_at: expect.any(String), budget: { id: expect.any(String), - campaign: expect.any(Object), type: "spend", limit: 1000, raw_limit: { diff --git a/packages/admin-ui/jest.config.js b/packages/admin-ui/jest.config.js index 1b626a0af1..3fccb6d4be 100644 --- a/packages/admin-ui/jest.config.js +++ b/packages/admin-ui/jest.config.js @@ -1,7 +1,7 @@ module.exports = { globals: { "ts-jest": { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: false, }, }, diff --git a/packages/api-key/jest.config.js b/packages/api-key/jest.config.js index 58c887c1c3..0c652264ea 100644 --- a/packages/api-key/jest.config.js +++ b/packages/api-key/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/auth/jest.config.js b/packages/auth/jest.config.js index 82b23a96dc..21d1539c24 100644 --- a/packages/auth/jest.config.js +++ b/packages/auth/jest.config.js @@ -10,7 +10,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/cache-inmemory/jest.config.js b/packages/cache-inmemory/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/cache-inmemory/jest.config.js +++ b/packages/cache-inmemory/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/cache-redis/jest.config.js b/packages/cache-redis/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/cache-redis/jest.config.js +++ b/packages/cache-redis/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/cart/jest.config.js b/packages/cart/jest.config.js index 07c381bf59..1b7795a88b 100644 --- a/packages/cart/jest.config.js +++ b/packages/cart/jest.config.js @@ -10,7 +10,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/core-flows/jest.config.js b/packages/core-flows/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/core-flows/jest.config.js +++ b/packages/core-flows/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/currency/jest.config.js b/packages/currency/jest.config.js index 58c887c1c3..0c652264ea 100644 --- a/packages/currency/jest.config.js +++ b/packages/currency/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/customer/jest.config.js b/packages/customer/jest.config.js index f2e9f17237..88c5539673 100644 --- a/packages/customer/jest.config.js +++ b/packages/customer/jest.config.js @@ -8,7 +8,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/event-bus-local/jest.config.js b/packages/event-bus-local/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/event-bus-local/jest.config.js +++ b/packages/event-bus-local/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/event-bus-redis/jest.config.js b/packages/event-bus-redis/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/event-bus-redis/jest.config.js +++ b/packages/event-bus-redis/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/inventory-next/jest.config.js b/packages/inventory-next/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/inventory-next/jest.config.js +++ b/packages/inventory-next/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/inventory/jest.config.js b/packages/inventory/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/inventory/jest.config.js +++ b/packages/inventory/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/link-modules/jest.config.js b/packages/link-modules/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/link-modules/jest.config.js +++ b/packages/link-modules/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/medusa-cli/jest.config.js b/packages/medusa-cli/jest.config.js index 14cd7ed6e7..e564d67c70 100644 --- a/packages/medusa-cli/jest.config.js +++ b/packages/medusa-cli/jest.config.js @@ -1,7 +1,7 @@ module.exports = { globals: { "ts-jest": { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: false, }, }, diff --git a/packages/medusa-core-utils/jest.config.js b/packages/medusa-core-utils/jest.config.js index 14cd7ed6e7..e564d67c70 100644 --- a/packages/medusa-core-utils/jest.config.js +++ b/packages/medusa-core-utils/jest.config.js @@ -1,7 +1,7 @@ module.exports = { globals: { "ts-jest": { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: false, }, }, diff --git a/packages/medusa-dev-cli/jest.config.js b/packages/medusa-dev-cli/jest.config.js index 14cd7ed6e7..e564d67c70 100644 --- a/packages/medusa-dev-cli/jest.config.js +++ b/packages/medusa-dev-cli/jest.config.js @@ -1,7 +1,7 @@ module.exports = { globals: { "ts-jest": { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: false, }, }, diff --git a/packages/modules-sdk/jest.config.js b/packages/modules-sdk/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/modules-sdk/jest.config.js +++ b/packages/modules-sdk/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/oas/openapi-typescript-codegen/jest.config.js b/packages/oas/openapi-typescript-codegen/jest.config.js index 5e9ddf76a1..8fa6fb8c15 100644 --- a/packages/oas/openapi-typescript-codegen/jest.config.js +++ b/packages/oas/openapi-typescript-codegen/jest.config.js @@ -1,7 +1,7 @@ module.exports = { globals: { "ts-jest": { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: false, }, }, diff --git a/packages/orchestration/jest.config.js b/packages/orchestration/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/orchestration/jest.config.js +++ b/packages/orchestration/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ], diff --git a/packages/order/jest.config.js b/packages/order/jest.config.js index 456054fe8a..dce2002dae 100644 --- a/packages/order/jest.config.js +++ b/packages/order/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/payment/jest.config.js b/packages/payment/jest.config.js index 860ba90a49..fc8bdef49c 100644 --- a/packages/payment/jest.config.js +++ b/packages/payment/jest.config.js @@ -8,7 +8,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts b/packages/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts index 8599261c29..d9847cf63a 100644 --- a/packages/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts +++ b/packages/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts @@ -296,9 +296,6 @@ moduleIntegrationTestRunner({ starts_at: updateDate, prices: expect.arrayContaining([ expect.objectContaining({ - price_list: expect.objectContaining({ - id: expect.any(String), - }), amount: 400, currency_code: "EUR", }), @@ -449,9 +446,6 @@ moduleIntegrationTestRunner({ id: expect.any(String), prices: expect.arrayContaining([ expect.objectContaining({ - price_list: expect.objectContaining({ - id: expect.any(String), - }), amount: 400, currency_code: "EUR", }), @@ -565,18 +559,12 @@ moduleIntegrationTestRunner({ value: "DE", }), ]), - price_list: expect.objectContaining({ - id: expect.any(String), - }), amount: 400, currency_code: "EUR", }), expect.objectContaining({ rules_count: 0, price_rules: [], - price_list: expect.objectContaining({ - id: expect.any(String), - }), amount: 600, currency_code: "EUR", }), @@ -698,9 +686,6 @@ moduleIntegrationTestRunner({ prices: expect.arrayContaining([ expect.objectContaining({ rules_count: 0, - price_list: expect.objectContaining({ - id: expect.any(String), - }), amount: 123, currency_code: "EUR", }), @@ -809,9 +794,6 @@ moduleIntegrationTestRunner({ prices: expect.arrayContaining([ expect.objectContaining({ rules_count: 1, - price_list: expect.objectContaining({ - id: expect.any(String), - }), price_rules: [ expect.objectContaining({ value: "EU", @@ -919,9 +901,6 @@ moduleIntegrationTestRunner({ }), }), ]), - price_list: expect.objectContaining({ - id: expect.any(String), - }), amount: 123, currency_code: "EUR", }), diff --git a/packages/pricing/integration-tests/__tests__/services/pricing-module/rule-type.spec.ts b/packages/pricing/integration-tests/__tests__/services/pricing-module/rule-type.spec.ts index 56c097c799..8ecb4af0d6 100644 --- a/packages/pricing/integration-tests/__tests__/services/pricing-module/rule-type.spec.ts +++ b/packages/pricing/integration-tests/__tests__/services/pricing-module/rule-type.spec.ts @@ -1,9 +1,10 @@ -import { SqlEntityManager } from "@mikro-orm/postgresql" import { createRuleTypes } from "../../../__fixtures__/rule-type" import { moduleIntegrationTestRunner, SuiteOptions } from "medusa-test-utils" import { Modules } from "@medusajs/modules-sdk" import { IPricingModuleService } from "@medusajs/types" +jest.setTimeout(30000) + moduleIntegrationTestRunner({ moduleName: Modules.PRICING, testSuite: ({ diff --git a/packages/pricing/jest.config.js b/packages/pricing/jest.config.js index 07c381bf59..1b7795a88b 100644 --- a/packages/pricing/jest.config.js +++ b/packages/pricing/jest.config.js @@ -10,7 +10,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts b/packages/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts index cd6c8bc586..d6765daab5 100644 --- a/packages/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts +++ b/packages/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts @@ -70,7 +70,6 @@ moduleIntegrationTestRunner({ name: "campaign 1", budget: expect.objectContaining({ id: expect.any(String), - campaign: expect.any(Object), limit: 1000, }), }, diff --git a/packages/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts b/packages/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts index d18b4eac94..03a3386741 100644 --- a/packages/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts +++ b/packages/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts @@ -958,7 +958,6 @@ moduleIntegrationTestRunner({ code: "PROMOTION_1", application_method: { id: expect.any(String), - promotion: expect.any(Object), type: "fixed", }, }, diff --git a/packages/promotion/jest.config.js b/packages/promotion/jest.config.js index bc1eac4b4f..d0f98de225 100644 --- a/packages/promotion/jest.config.js +++ b/packages/promotion/jest.config.js @@ -10,7 +10,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/region/jest.config.js b/packages/region/jest.config.js index 58c887c1c3..0c652264ea 100644 --- a/packages/region/jest.config.js +++ b/packages/region/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/sales-channel/jest.config.js b/packages/sales-channel/jest.config.js index 456054fe8a..dce2002dae 100644 --- a/packages/sales-channel/jest.config.js +++ b/packages/sales-channel/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/stock-location-next/jest.config.js b/packages/stock-location-next/jest.config.js index 701550aa4b..7b13ee00a9 100644 --- a/packages/stock-location-next/jest.config.js +++ b/packages/stock-location-next/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/stock-location/jest.config.js b/packages/stock-location/jest.config.js index 701550aa4b..7b13ee00a9 100644 --- a/packages/stock-location/jest.config.js +++ b/packages/stock-location/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/store/jest.config.js b/packages/store/jest.config.js index 58c887c1c3..0c652264ea 100644 --- a/packages/store/jest.config.js +++ b/packages/store/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/user/jest.config.js b/packages/user/jest.config.js index 58c887c1c3..0c652264ea 100644 --- a/packages/user/jest.config.js +++ b/packages/user/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/utils/jest.config.js b/packages/utils/jest.config.js index 701550aa4b..7b13ee00a9 100644 --- a/packages/utils/jest.config.js +++ b/packages/utils/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts b/packages/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts index 191a2ffde1..9b9d365485 100644 --- a/packages/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts +++ b/packages/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts @@ -21,6 +21,8 @@ const afterEach_ = async () => { await TestDatabase.clearTables(sharedPgConnection) } +jest.setTimeout(50000) + describe("Workflow Orchestrator module", function () { describe("Testing basic workflow", function () { let workflowOrcModule: IWorkflowEngineService diff --git a/packages/workflow-engine-inmemory/jest.config.js b/packages/workflow-engine-inmemory/jest.config.js index 456054fe8a..dce2002dae 100644 --- a/packages/workflow-engine-inmemory/jest.config.js +++ b/packages/workflow-engine-inmemory/jest.config.js @@ -9,7 +9,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/workflow-engine-redis/jest.config.js b/packages/workflow-engine-redis/jest.config.js index 860ba90a49..fc8bdef49c 100644 --- a/packages/workflow-engine-redis/jest.config.js +++ b/packages/workflow-engine-redis/jest.config.js @@ -8,7 +8,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.spec.json", + tsconfig: "tsconfig.spec.json", isolatedModules: true, }, ], diff --git a/packages/workflows-sdk/jest.config.js b/packages/workflows-sdk/jest.config.js index 2fd636dce6..bddd3c8819 100644 --- a/packages/workflows-sdk/jest.config.js +++ b/packages/workflows-sdk/jest.config.js @@ -3,7 +3,7 @@ module.exports = { "^.+\\.[jt]s?$": [ "ts-jest", { - tsConfig: "tsconfig.json", + tsconfig: "tsconfig.json", isolatedModules: true, }, ],