From 68560787e50ca86975ffdb1c96e73b16f1fddee4 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Wed, 16 Oct 2024 22:28:09 +0530 Subject: [PATCH] breaking: rename package names to be consistent and under @medusajs scope (#9580) --- .github/workflows/test-cli-with-database.yml | 2 +- integration-tests/api/medusa-config.js | 6 +- .../__tests__/api-key/admin/api-key.spec.ts | 2 +- .../api-key/admin/publishable-key.spec.ts | 2 +- .../http/__tests__/auth/admin/auth.spec.ts | 2 +- .../campaigns/admin/campaigns.spec.ts | 2 +- .../http/__tests__/cart/store/cart.spec.ts | 2 +- .../http/__tests__/claims/claims.spec.ts | 2 +- .../collection/admin/colllection.spec.ts | 2 +- .../collection/store/collection.spec.ts | 2 +- .../__tests__/currency/admin/currency.spec.ts | 2 +- .../admin/customer-group.spec.ts | 2 +- .../__tests__/customer/admin/customer.spec.ts | 2 +- .../__tests__/customer/store/customer.spec.ts | 2 +- .../__tests__/exchanges/exchanges.spec.ts | 2 +- .../admin/fulfillment-provider.spec.ts | 2 +- .../admin/fulfillment-sets.spec.ts | 2 +- .../inventory/admin/inventory.spec.ts | 2 +- .../__tests__/invite/admin/invite.spec.ts | 2 +- .../__tests__/order-edits/order-edits.spec.ts | 2 +- .../http/__tests__/order/admin/order.spec.ts | 2 +- .../__tests__/order/admin/rma-flows.spec.ts | 2 +- .../admin/payment-collection.spec.ts | 2 +- .../admin/payment-sessions.spec.ts | 2 +- .../__tests__/payment/admin/payment.spec.ts | 2 +- .../price-list/admin/price-list.spec.ts | 2 +- .../admin/price-preference.spec.ts | 2 +- .../admin/product-category.spec.ts | 14 +- .../product-tag/admin/product-tag.spec.ts | 2 +- .../product-type/admin/product-type.spec.ts | 2 +- .../product/admin/product-export.spec.ts | 5 +- .../product/admin/product-import.spec.ts | 5 +- .../__tests__/product/admin/product.spec.ts | 2 +- .../__tests__/product/admin/variant.spec.ts | 2 +- .../__tests__/product/store/product.spec.ts | 2 +- .../promotions/admin/promotions.spec.ts | 2 +- .../refund-reason/refund-reason.spec.ts | 2 +- .../__tests__/region/admin/region.spec.ts | 2 +- .../reservations/admin/reservations.spec.ts | 2 +- .../http/__tests__/returns/returns.spec.ts | 2 +- .../sales-channel/admin/sales-channel.spec.ts | 2 +- .../admin/shipping-option.spec.ts | 2 +- .../admin/shipping-profile.spec.ts | 2 +- .../admin/fulfillment-provider.spec.ts | 2 +- .../admin/stock-location.spec.ts | 2 +- .../http/__tests__/store/admin/store.spec.ts | 2 +- .../__tests__/upload/admin/upload.spec.ts | 2 +- .../http/__tests__/user/admin/user.spec.ts | 2 +- integration-tests/http/medusa-config.js | 2 +- integration-tests/http/package.json | 6 +- .../admin/email-password-provider.spec.ts | 2 +- .../cart/store/add-promotions-to-cart.spec.ts | 2 +- .../cart/store/cart.workflows.spec.ts | 2 +- .../__tests__/cart/store/carts.spec.ts | 2 +- .../store/remove-promotions-from-cart.spec.ts | 2 +- .../__tests__/common/workflows.spec.ts | 2 +- .../__tests__/currency/admin/currency.spec.ts | 2 +- .../__tests__/currency/store/currency.spec.ts | 2 +- .../admin/batch-add-customers.ts | 2 +- .../admin/batch-remove-customers.ts | 2 +- .../admin/create-customer-group.ts | 2 +- .../admin/delete-customer-group.ts | 2 +- .../admin/list-customer-group-customers.ts | 2 +- .../admin/list-customer-groups.spec.ts | 2 +- .../admin/retrieve-customer-group.ts | 2 +- .../admin/update-customer-group.ts | 2 +- .../admin/create-customer-addresses.ts | 2 +- .../customer/admin/create-customer.ts | 2 +- .../admin/delete-customer-address.spec.ts | 2 +- .../customer/admin/delete-customer.ts | 2 +- .../customer/admin/list-customer-addresses.ts | 2 +- .../customer/admin/list-customers.spec.ts | 2 +- .../admin/update-customer-address.spec.ts | 2 +- .../customer/admin/update-customer.ts | 2 +- .../store/create-customer-addresses.ts | 2 +- .../customer/store/create-customer.spec.ts | 2 +- .../store/delete-customer-address.spec.ts | 2 +- .../__tests__/customer/store/get-me.spec.ts | 2 +- .../customer/store/list-customer-addresses.ts | 2 +- .../store/update-customer-address.spec.ts | 2 +- .../modules/__tests__/event-bus/index.spec.ts | 2 +- .../fulfillment-providers/index.spec.ts | 2 +- .../fulfillment/fulfillment.workflows.spec.ts | 2 +- .../__tests__/fulfillment/index.spec.ts | 2 +- .../modules/__tests__/index/search.spec.ts | 2 +- .../__tests__/invites/accept-invite.spec.ts | 2 +- .../__tests__/invites/create-invite.spec.ts | 2 +- .../__tests__/invites/delete-invite.spec.ts | 2 +- .../__tests__/invites/list-invites.spec.ts | 2 +- .../__tests__/invites/resend-invite.spec.ts | 2 +- .../__tests__/invites/retrieve-invite.spec.ts | 2 +- .../__tests__/link-modules/cart-links.spec.ts | 2 +- .../link-modules/cart-region.spec.ts | 2 +- .../link-modules/define-link.spec.ts | 2 +- .../fulfillment-set-location.spec.ts | 2 +- .../modules/__tests__/link-modules/index.ts | 2 +- .../product-variant-price-set.spec.ts | 2 +- .../publishable-key-sales-channel.spec.ts | 2 +- .../region-payment-provider.spec.ts | 2 +- .../sales-channel-location.spec.ts | 2 +- .../shipping-option-price-set.spec.ts | 2 +- .../link-modules/store-currency.spec.ts | 2 +- .../__tests__/modules/load-standalone.ts | 2 +- .../__tests__/modules/remote-query.spec.ts | 2 +- .../notification/admin/notification.spec.ts | 5 +- .../__tests__/order/draft-order.spec.ts | 2 +- .../modules/__tests__/order/order.spec.ts | 2 +- .../order/workflows/begin-order-claim.spec.ts | 2 +- .../workflows/begin-order-exchange.spec.ts | 2 +- .../workflows/begin-order-return.spec.ts | 2 +- .../order/workflows/cancel-order.spec.ts | 2 +- .../workflows/create-complete-return.spec.ts | 2 +- .../workflows/create-fulfillment.spec.ts | 2 +- .../order/workflows/create-shipment.spec.ts | 2 +- .../order/workflows/order-change-actions.ts | 2 +- .../order/workflows/order-change.spec.ts | 2 +- .../return/create-return-shipping.spec.ts | 2 +- .../order/workflows/return/items.spec.ts | 2 +- .../payment/payment-providers.spec.ts | 2 +- .../payment/payment-session.workflows.spec.ts | 2 +- .../price-lists/admin/price-lists.spec.ts | 2 +- .../price-lists/store/get-product.ts | 2 +- .../__tests__/product/admin/products.spec.ts | 2 +- .../product/workflows/batch-products.spec.ts | 2 +- .../__tests__/regions/admin/regions.spec.ts | 2 +- .../regions/workflows/create-region.spec.ts | 2 +- .../regions/workflows/update-region.spec.ts | 4 +- .../store/shipping-options.spec.ts | 2 +- .../workflows/batch-shipping-options-rules.ts | 2 +- .../workflows/create-shipping-options.ts | 2 +- .../workflows/delete-shipping-options.ts | 2 +- .../workflows/update-shipping-options.ts | 2 +- .../__tests__/store/admin/store.spec.ts | 2 +- .../modules/__tests__/tax/admin/tax.spec.ts | 2 +- .../__tests__/tax/workflow/tax.spec.ts | 2 +- .../modules/__tests__/users/get-me.spec.ts | 2 +- .../__tests__/users/update-user.spec.ts | 2 +- .../__tests__/workflow-engine/tests.ts | 2 +- integration-tests/modules/medusa-config.js | 4 +- integration-tests/modules/package.json | 6 +- packages/cli/create-medusa-app/package.json | 2 +- .../create-medusa-app/src/commands/create.ts | 2 +- packages/cli/medusa-cli/package.json | 4 +- packages/cli/medusa-cli/src/commands/new.ts | 2 +- packages/cli/medusa-cli/src/create-cli.ts | 2 +- packages/cli/medusa-cli/src/reporter/index.ts | 2 +- packages/core/framework/package.json | 6 +- .../src/feature-flags/feature-flag-loader.ts | 2 +- packages/core/framework/src/index.ts | 2 +- packages/core/framework/src/logger/index.ts | 2 +- .../common/__tests__/define-config.spec.ts | 72 ++--- .../core/utils/src/common/define-config.ts | 8 +- .../core/utils/src/modules-sdk/definition.ts | 4 +- packages/medusa-telemetry/package.json | 2 +- packages/medusa-test-utils/package.json | 2 +- packages/medusa/package.json | 8 +- packages/medusa/src/commands/develop.ts | 2 +- packages/medusa/src/commands/start.ts | 2 +- packages/medusa/src/commands/user.ts | 2 +- .../medusa/src/modules/file-local-next.ts | 6 - packages/medusa/src/modules/file-local.ts | 6 + packages/medusa/src/modules/inventory-next.ts | 6 - packages/medusa/src/modules/inventory.ts | 6 + .../medusa/src/modules/stock-location-next.ts | 6 - packages/medusa/src/modules/stock-location.ts | 6 + .../__tests__/api-key-module-service.spec.ts | 2 +- packages/modules/api-key/package.json | 2 +- .../auth-module-service/auth-identity.spec.ts | 2 +- .../auth-module-service/index.spec.ts | 2 +- packages/modules/auth/package.json | 2 +- .../services/cart-module/index.spec.ts | 2 +- packages/modules/cart/package.json | 2 +- .../__tests__/currency-module-service.spec.ts | 2 +- packages/modules/currency/package.json | 2 +- .../services/customer-module/index.spec.ts | 2 +- packages/modules/customer/package.json | 2 +- .../__tests__/module.spec.ts | 2 +- packages/modules/file/package.json | 2 +- .../fulfillment-set.spec.ts | 2 +- .../fulfillment.spec.ts | 2 +- .../geo-zone.spec.ts | 2 +- .../fulfillment-module-service/index.spec.ts | 2 +- .../service-zone.spec.ts | 2 +- .../shipping-option.spec.ts | 2 +- .../shipping-profile.spec.ts | 2 +- packages/modules/fulfillment/package.json | 2 +- .../__tests__/index-engine-module.spec.ts | 2 +- .../__tests__/query-builder.spec.ts | 2 +- packages/modules/index/package.json | 2 +- .../{inventory-next => inventory}/.gitignore | 0 .../CHANGELOG.md | 0 .../inventory-module-service.spec.ts | 2 +- .../jest.config.js | 0 .../mikro-orm.config.dev.ts | 0 .../package.json | 6 +- .../src/index.ts | 0 .../src/joiner-config.ts | 0 .../.snapshot-medusa-inventory.json | 0 .../src/migrations/Migration20240307132720.ts | 0 .../src/migrations/Migration20240719123015.ts | 0 .../src/models/index.ts | 0 .../src/models/inventory-item.ts | 0 .../src/models/inventory-level.ts | 0 .../src/models/reservation-item.ts | 0 .../src/repositories/index.ts | 0 .../src/repositories/inventory-level.ts | 0 .../src/schema/index.ts | 0 .../src/services/__tests__/noop.ts | 0 .../src/services/index.ts | 0 .../src/services/inventory-level.ts | 0 .../src/services/inventory-module.ts | 0 .../tsconfig.json | 0 .../__tests__/migrations.spec.ts | 2 +- packages/modules/link-modules/package.json | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 +- packages/modules/locking/package.json | 2 +- .../notification-module-service/index.spec.ts | 2 +- packages/modules/notification/package.json | 2 +- .../__tests__/create-order.ts | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 +- .../__tests__/order-claim.ts | 2 +- .../integration-tests/__tests__/order-edit.ts | 2 +- .../__tests__/order-exchange.ts | 2 +- .../__tests__/order-items-shipping.spec.ts | 2 +- .../__tests__/order-return.ts | 2 +- .../integration-tests/__tests__/returns.ts | 2 +- packages/modules/order/package.json | 2 +- .../__tests__/loaders/providers.spec.ts | 2 +- .../services/payment-module/index.spec.ts | 2 +- packages/modules/payment/package.json | 2 +- .../pricing-module/calculate-price.spec.ts | 2 +- .../services/pricing-module/index.spec.ts | 2 +- .../pricing-module/price-list-rule.spec.ts | 2 +- .../pricing-module/price-list.spec.ts | 2 +- .../pricing-module/price-rule.spec.ts | 2 +- .../services/pricing-module/price-set.spec.ts | 2 +- packages/modules/pricing/package.json | 2 +- .../__tests__/product-category.ts | 2 +- .../product-categories.spec.ts | 2 +- .../product-collections.spec.ts | 2 +- .../product-options.spec.ts | 2 +- .../product-tags.spec.ts | 2 +- .../product-types.spec.ts | 2 +- .../product-variants.spec.ts | 2 +- .../product-module-service/products.spec.ts | 2 +- .../integration-tests/__tests__/product.ts | 2 +- packages/modules/product/package.json | 2 +- .../promotion-module/campaign.spec.ts | 2 +- .../promotion-module/compute-actions.spec.ts | 2 +- .../promotion-module/promotion.spec.ts | 2 +- .../promotion-module/register-usage.spec.ts | 2 +- .../promotion-module/revert-usage.spec.ts | 2 +- packages/modules/promotion/package.json | 2 +- .../modules/providers/file-local/package.json | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 +- .../__tests__/region-module.spec.ts | 2 +- packages/modules/region/package.json | 2 +- .../services/sales-channel-module.spec.ts | 2 +- packages/modules/sales-channel/package.json | 2 +- .../.gitignore | 0 .../CHANGELOG.md | 0 .../stock-location-module-service.spec.ts | 2 +- .../jest.config.js | 0 .../mikro-orm.config.dev.ts | 0 .../package.json | 4 +- .../src/index.ts | 0 .../src/joiner-config.ts | 0 .../.snapshot-medusa-stock-location.json | 0 .../src/migrations/Migration20240307161216.ts | 0 .../src/models/index.ts | 0 .../src/models/stock-location-address.ts | 0 .../src/models/stock-location.ts | 0 .../src/schema/index.ts | 0 .../src/services/__tests__/noop.ts | 0 .../src/services/index.ts | 0 .../src/services/stock-location-module.ts | 0 .../tsconfig.json | 0 .../__tests__/store-module-service.spec.ts | 2 +- packages/modules/store/package.json | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 +- packages/modules/tax/package.json | 2 +- .../__tests__/invite.spec.ts | 2 +- .../integration-tests/__tests__/user.spec.ts | 2 +- packages/modules/user/package.json | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 +- .../workflow-engine-inmemory/package.json | 2 +- .../integration-tests/__tests__/index.spec.ts | 2 +- .../workflow-engine-redis/package.json | 2 +- yarn.lock | 298 +++++++++--------- 289 files changed, 483 insertions(+), 474 deletions(-) delete mode 100644 packages/medusa/src/modules/file-local-next.ts create mode 100644 packages/medusa/src/modules/file-local.ts delete mode 100644 packages/medusa/src/modules/inventory-next.ts create mode 100644 packages/medusa/src/modules/inventory.ts delete mode 100644 packages/medusa/src/modules/stock-location-next.ts create mode 100644 packages/medusa/src/modules/stock-location.ts rename packages/modules/{inventory-next => inventory}/.gitignore (100%) rename packages/modules/{inventory-next => inventory}/CHANGELOG.md (100%) rename packages/modules/{inventory-next => inventory}/integration-tests/__tests__/inventory-module-service.spec.ts (99%) rename packages/modules/{inventory-next => inventory}/jest.config.js (100%) rename packages/modules/{inventory-next => inventory}/mikro-orm.config.dev.ts (100%) rename packages/modules/{inventory-next => inventory}/package.json (94%) rename packages/modules/{inventory-next => inventory}/src/index.ts (100%) rename packages/modules/{inventory-next => inventory}/src/joiner-config.ts (100%) rename packages/modules/{inventory-next => inventory}/src/migrations/.snapshot-medusa-inventory.json (100%) rename packages/modules/{inventory-next => inventory}/src/migrations/Migration20240307132720.ts (100%) rename packages/modules/{inventory-next => inventory}/src/migrations/Migration20240719123015.ts (100%) rename packages/modules/{inventory-next => inventory}/src/models/index.ts (100%) rename packages/modules/{inventory-next => inventory}/src/models/inventory-item.ts (100%) rename packages/modules/{inventory-next => inventory}/src/models/inventory-level.ts (100%) rename packages/modules/{inventory-next => inventory}/src/models/reservation-item.ts (100%) rename packages/modules/{inventory-next => inventory}/src/repositories/index.ts (100%) rename packages/modules/{inventory-next => inventory}/src/repositories/inventory-level.ts (100%) rename packages/modules/{inventory-next => inventory}/src/schema/index.ts (100%) rename packages/modules/{inventory-next => inventory}/src/services/__tests__/noop.ts (100%) rename packages/modules/{inventory-next => inventory}/src/services/index.ts (100%) rename packages/modules/{inventory-next => inventory}/src/services/inventory-level.ts (100%) rename packages/modules/{inventory-next => inventory}/src/services/inventory-module.ts (100%) rename packages/modules/{inventory-next => inventory}/tsconfig.json (100%) rename packages/modules/{stock-location-next => stock-location}/.gitignore (100%) rename packages/modules/{stock-location-next => stock-location}/CHANGELOG.md (100%) rename packages/modules/{stock-location-next => stock-location}/integration-tests/__tests__/stock-location-module-service.spec.ts (98%) rename packages/modules/{stock-location-next => stock-location}/jest.config.js (100%) rename packages/modules/{stock-location-next => stock-location}/mikro-orm.config.dev.ts (100%) rename packages/modules/{stock-location-next => stock-location}/package.json (96%) rename packages/modules/{stock-location-next => stock-location}/src/index.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/joiner-config.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/migrations/.snapshot-medusa-stock-location.json (100%) rename packages/modules/{stock-location-next => stock-location}/src/migrations/Migration20240307161216.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/models/index.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/models/stock-location-address.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/models/stock-location.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/schema/index.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/services/__tests__/noop.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/services/index.ts (100%) rename packages/modules/{stock-location-next => stock-location}/src/services/stock-location-module.ts (100%) rename packages/modules/{stock-location-next => stock-location}/tsconfig.json (100%) diff --git a/.github/workflows/test-cli-with-database.yml b/.github/workflows/test-cli-with-database.yml index f32ac63e45..9737a1ae8f 100644 --- a/.github/workflows/test-cli-with-database.yml +++ b/.github/workflows/test-cli-with-database.yml @@ -47,7 +47,7 @@ jobs: node-version: 20 - name: Install Medusa cli - run: npm i -g @medusajs/medusa-cli@preview + run: npm i -g @medusajs/cli@preview - name: Create Medusa project run: | diff --git a/integration-tests/api/medusa-config.js b/integration-tests/api/medusa-config.js index d22ed9574d..299d7f31e8 100644 --- a/integration-tests/api/medusa-config.js +++ b/integration-tests/api/medusa-config.js @@ -53,11 +53,11 @@ module.exports = { options: { ttl: 0 }, // Cache disabled }, [Modules.STOCK_LOCATION]: { - resolve: "@medusajs/stock-location-next", + resolve: "@medusajs/stock-location", options: {}, }, [Modules.INVENTORY]: { - resolve: "@medusajs/inventory-next", + resolve: "@medusajs/inventory", options: {}, }, [Modules.FILE]: { @@ -65,7 +65,7 @@ module.exports = { options: { providers: [ { - resolve: "@medusajs/file-local-next", + resolve: "@medusajs/file-local", id: "local", }, ], diff --git a/integration-tests/http/__tests__/api-key/admin/api-key.spec.ts b/integration-tests/http/__tests__/api-key/admin/api-key.spec.ts index 841d49d58f..92922a4965 100644 --- a/integration-tests/http/__tests__/api-key/admin/api-key.spec.ts +++ b/integration-tests/http/__tests__/api-key/admin/api-key.spec.ts @@ -1,5 +1,5 @@ import { ApiKeyType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/api-key/admin/publishable-key.spec.ts b/integration-tests/http/__tests__/api-key/admin/publishable-key.spec.ts index ca1a08aff5..1e98956c89 100644 --- a/integration-tests/http/__tests__/api-key/admin/publishable-key.spec.ts +++ b/integration-tests/http/__tests__/api-key/admin/publishable-key.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/auth/admin/auth.spec.ts b/integration-tests/http/__tests__/auth/admin/auth.spec.ts index f54787cbdf..b5e4aa6fe3 100644 --- a/integration-tests/http/__tests__/auth/admin/auth.spec.ts +++ b/integration-tests/http/__tests__/auth/admin/auth.spec.ts @@ -1,6 +1,6 @@ import { generateResetPasswordTokenWorkflow } from "@medusajs/core-flows" import jwt from "jsonwebtoken" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/campaigns/admin/campaigns.spec.ts b/integration-tests/http/__tests__/campaigns/admin/campaigns.spec.ts index 59dc2c7eeb..ca23a005f6 100644 --- a/integration-tests/http/__tests__/campaigns/admin/campaigns.spec.ts +++ b/integration-tests/http/__tests__/campaigns/admin/campaigns.spec.ts @@ -1,5 +1,5 @@ import { CampaignBudgetType, PromotionType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/http/__tests__/cart/store/cart.spec.ts b/integration-tests/http/__tests__/cart/store/cart.spec.ts index a7ec1a6674..8f244080f7 100644 --- a/integration-tests/http/__tests__/cart/store/cart.spec.ts +++ b/integration-tests/http/__tests__/cart/store/cart.spec.ts @@ -6,7 +6,7 @@ import { PromotionRuleOperator, PromotionType, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, generatePublishableKey, diff --git a/integration-tests/http/__tests__/claims/claims.spec.ts b/integration-tests/http/__tests__/claims/claims.spec.ts index 3f6c6cc660..2c798f488a 100644 --- a/integration-tests/http/__tests__/claims/claims.spec.ts +++ b/integration-tests/http/__tests__/claims/claims.spec.ts @@ -5,7 +5,7 @@ import { Modules, RuleOperator, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/collection/admin/colllection.spec.ts b/integration-tests/http/__tests__/collection/admin/colllection.spec.ts index 12f8ac6664..3ee978230f 100644 --- a/integration-tests/http/__tests__/collection/admin/colllection.spec.ts +++ b/integration-tests/http/__tests__/collection/admin/colllection.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, adminHeaders, diff --git a/integration-tests/http/__tests__/collection/store/collection.spec.ts b/integration-tests/http/__tests__/collection/store/collection.spec.ts index eb77f5d6ef..f426f2e8c0 100644 --- a/integration-tests/http/__tests__/collection/store/collection.spec.ts +++ b/integration-tests/http/__tests__/collection/store/collection.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/currency/admin/currency.spec.ts b/integration-tests/http/__tests__/currency/admin/currency.spec.ts index 2edd087764..bb5d8a9c1b 100644 --- a/integration-tests/http/__tests__/currency/admin/currency.spec.ts +++ b/integration-tests/http/__tests__/currency/admin/currency.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/customer-group/admin/customer-group.spec.ts b/integration-tests/http/__tests__/customer-group/admin/customer-group.spec.ts index 766c7ea1ca..9764af1089 100644 --- a/integration-tests/http/__tests__/customer-group/admin/customer-group.spec.ts +++ b/integration-tests/http/__tests__/customer-group/admin/customer-group.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/customer/admin/customer.spec.ts b/integration-tests/http/__tests__/customer/admin/customer.spec.ts index dc49c8219c..26de7a682a 100644 --- a/integration-tests/http/__tests__/customer/admin/customer.spec.ts +++ b/integration-tests/http/__tests__/customer/admin/customer.spec.ts @@ -1,7 +1,7 @@ import { IAuthModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" import jwt from "jsonwebtoken" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/customer/store/customer.spec.ts b/integration-tests/http/__tests__/customer/store/customer.spec.ts index 976b526c9e..9f9087204f 100644 --- a/integration-tests/http/__tests__/customer/store/customer.spec.ts +++ b/integration-tests/http/__tests__/customer/store/customer.spec.ts @@ -1,5 +1,5 @@ import { MedusaContainer } from "@medusajs/types" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/exchanges/exchanges.spec.ts b/integration-tests/http/__tests__/exchanges/exchanges.spec.ts index 57c3fa596e..0dd8cd4b07 100644 --- a/integration-tests/http/__tests__/exchanges/exchanges.spec.ts +++ b/integration-tests/http/__tests__/exchanges/exchanges.spec.ts @@ -3,7 +3,7 @@ import { Modules, RuleOperator, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/fulfillment/admin/fulfillment-provider.spec.ts b/integration-tests/http/__tests__/fulfillment/admin/fulfillment-provider.spec.ts index dd8886d6fb..58ae5a1f9e 100644 --- a/integration-tests/http/__tests__/fulfillment/admin/fulfillment-provider.spec.ts +++ b/integration-tests/http/__tests__/fulfillment/admin/fulfillment-provider.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/fulfillment/admin/fulfillment-sets.spec.ts b/integration-tests/http/__tests__/fulfillment/admin/fulfillment-sets.spec.ts index 5ada2527d2..697274f3aa 100644 --- a/integration-tests/http/__tests__/fulfillment/admin/fulfillment-sets.spec.ts +++ b/integration-tests/http/__tests__/fulfillment/admin/fulfillment-sets.spec.ts @@ -5,7 +5,7 @@ import { createAdminUser, } from "../../../../helpers/create-admin-user" -const { medusaIntegrationTestRunner } = require("medusa-test-utils") +const { medusaIntegrationTestRunner } = require("@medusajs/test-utils") jest.setTimeout(30000) diff --git a/integration-tests/http/__tests__/inventory/admin/inventory.spec.ts b/integration-tests/http/__tests__/inventory/admin/inventory.spec.ts index 8a8790e4e3..5661b45e2b 100644 --- a/integration-tests/http/__tests__/inventory/admin/inventory.spec.ts +++ b/integration-tests/http/__tests__/inventory/admin/inventory.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/invite/admin/invite.spec.ts b/integration-tests/http/__tests__/invite/admin/invite.spec.ts index 6f0d280d4a..cf659a00c1 100644 --- a/integration-tests/http/__tests__/invite/admin/invite.spec.ts +++ b/integration-tests/http/__tests__/invite/admin/invite.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/order-edits/order-edits.spec.ts b/integration-tests/http/__tests__/order-edits/order-edits.spec.ts index 000d43fe72..9790780b12 100644 --- a/integration-tests/http/__tests__/order-edits/order-edits.spec.ts +++ b/integration-tests/http/__tests__/order-edits/order-edits.spec.ts @@ -4,7 +4,7 @@ import { OrderChangeStatus, RuleOperator, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/order/admin/order.spec.ts b/integration-tests/http/__tests__/order/admin/order.spec.ts index 6bf99aa0c6..9ee833bcb4 100644 --- a/integration-tests/http/__tests__/order/admin/order.spec.ts +++ b/integration-tests/http/__tests__/order/admin/order.spec.ts @@ -1,5 +1,5 @@ import { ModuleRegistrationName } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/order/admin/rma-flows.spec.ts b/integration-tests/http/__tests__/order/admin/rma-flows.spec.ts index 8a946510b7..c3b42a3d8a 100644 --- a/integration-tests/http/__tests__/order/admin/rma-flows.spec.ts +++ b/integration-tests/http/__tests__/order/admin/rma-flows.spec.ts @@ -1,5 +1,5 @@ import { ClaimType, Modules, RuleOperator } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/payment-collection/admin/payment-collection.spec.ts b/integration-tests/http/__tests__/payment-collection/admin/payment-collection.spec.ts index 5d53745ad1..6a83e7a9cf 100644 --- a/integration-tests/http/__tests__/payment-collection/admin/payment-collection.spec.ts +++ b/integration-tests/http/__tests__/payment-collection/admin/payment-collection.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, adminHeaders, diff --git a/integration-tests/http/__tests__/payment-collection/admin/payment-sessions.spec.ts b/integration-tests/http/__tests__/payment-collection/admin/payment-sessions.spec.ts index c243dd777b..faa94b8479 100644 --- a/integration-tests/http/__tests__/payment-collection/admin/payment-sessions.spec.ts +++ b/integration-tests/http/__tests__/payment-collection/admin/payment-sessions.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/payment/admin/payment.spec.ts b/integration-tests/http/__tests__/payment/admin/payment.spec.ts index 248aba2fb8..684a37d9cf 100644 --- a/integration-tests/http/__tests__/payment/admin/payment.spec.ts +++ b/integration-tests/http/__tests__/payment/admin/payment.spec.ts @@ -1,5 +1,5 @@ import { ClaimType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/price-list/admin/price-list.spec.ts b/integration-tests/http/__tests__/price-list/admin/price-list.spec.ts index f2f2c1cf27..615ee54595 100644 --- a/integration-tests/http/__tests__/price-list/admin/price-list.spec.ts +++ b/integration-tests/http/__tests__/price-list/admin/price-list.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, adminHeaders, diff --git a/integration-tests/http/__tests__/price-preference/admin/price-preference.spec.ts b/integration-tests/http/__tests__/price-preference/admin/price-preference.spec.ts index fd5c979e57..c82c89dc80 100644 --- a/integration-tests/http/__tests__/price-preference/admin/price-preference.spec.ts +++ b/integration-tests/http/__tests__/price-preference/admin/price-preference.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, adminHeaders, diff --git a/integration-tests/http/__tests__/product-category/admin/product-category.spec.ts b/integration-tests/http/__tests__/product-category/admin/product-category.spec.ts index 1fa554bc06..9e8634ca03 100644 --- a/integration-tests/http/__tests__/product-category/admin/product-category.spec.ts +++ b/integration-tests/http/__tests__/product-category/admin/product-category.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, @@ -313,12 +313,12 @@ medusaIntegrationTestRunner({ ).data.product_category await api.post( - "/admin/product-categories", - { - name: "Something different", - }, - adminHeaders - ) + "/admin/product-categories", + { + name: "Something different", + }, + adminHeaders + ) const response = await api.get( "/admin/product-categories?q=Category", diff --git a/integration-tests/http/__tests__/product-tag/admin/product-tag.spec.ts b/integration-tests/http/__tests__/product-tag/admin/product-tag.spec.ts index a6504a9cdb..3658e3bd37 100644 --- a/integration-tests/http/__tests__/product-tag/admin/product-tag.spec.ts +++ b/integration-tests/http/__tests__/product-tag/admin/product-tag.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, adminHeaders, diff --git a/integration-tests/http/__tests__/product-type/admin/product-type.spec.ts b/integration-tests/http/__tests__/product-type/admin/product-type.spec.ts index 21dca450fe..18bfef89a0 100644 --- a/integration-tests/http/__tests__/product-type/admin/product-type.spec.ts +++ b/integration-tests/http/__tests__/product-type/admin/product-type.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, adminHeaders, diff --git a/integration-tests/http/__tests__/product/admin/product-export.spec.ts b/integration-tests/http/__tests__/product/admin/product-export.spec.ts index ac153a22a4..5c227467a2 100644 --- a/integration-tests/http/__tests__/product/admin/product-export.spec.ts +++ b/integration-tests/http/__tests__/product/admin/product-export.spec.ts @@ -1,7 +1,10 @@ import { IEventBusModuleService } from "@medusajs/types" import { CommonEvents, Modules } from "@medusajs/utils" import fs from "fs/promises" -import { TestEventUtils, medusaIntegrationTestRunner } from "medusa-test-utils" +import { + TestEventUtils, + medusaIntegrationTestRunner, +} from "@medusajs/test-utils" import path from "path" import { adminHeaders, diff --git a/integration-tests/http/__tests__/product/admin/product-import.spec.ts b/integration-tests/http/__tests__/product/admin/product-import.spec.ts index ab8178db2c..77085205fb 100644 --- a/integration-tests/http/__tests__/product/admin/product-import.spec.ts +++ b/integration-tests/http/__tests__/product/admin/product-import.spec.ts @@ -2,7 +2,10 @@ import { IEventBusModuleService } from "@medusajs/types" import { CommonEvents, Modules } from "@medusajs/utils" import FormData from "form-data" import fs from "fs/promises" -import { medusaIntegrationTestRunner, TestEventUtils } from "medusa-test-utils" +import { + medusaIntegrationTestRunner, + TestEventUtils, +} from "@medusajs/test-utils" import path from "path" import { adminHeaders, diff --git a/integration-tests/http/__tests__/product/admin/product.spec.ts b/integration-tests/http/__tests__/product/admin/product.spec.ts index 11710393b1..bc6d52e593 100644 --- a/integration-tests/http/__tests__/product/admin/product.spec.ts +++ b/integration-tests/http/__tests__/product/admin/product.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/product/admin/variant.spec.ts b/integration-tests/http/__tests__/product/admin/variant.spec.ts index ac3500f6d6..4e11d9a477 100644 --- a/integration-tests/http/__tests__/product/admin/variant.spec.ts +++ b/integration-tests/http/__tests__/product/admin/variant.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/product/store/product.spec.ts b/integration-tests/http/__tests__/product/store/product.spec.ts index 7ac8dd194a..f7e50cb3dd 100644 --- a/integration-tests/http/__tests__/product/store/product.spec.ts +++ b/integration-tests/http/__tests__/product/store/product.spec.ts @@ -1,6 +1,6 @@ import { IStoreModuleService } from "@medusajs/types" import { ApiKeyType, Modules, ProductStatus } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/promotions/admin/promotions.spec.ts b/integration-tests/http/__tests__/promotions/admin/promotions.spec.ts index f1f28f6a57..c4edbafc69 100644 --- a/integration-tests/http/__tests__/promotions/admin/promotions.spec.ts +++ b/integration-tests/http/__tests__/promotions/admin/promotions.spec.ts @@ -1,5 +1,5 @@ import { PromotionType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/http/__tests__/refund-reason/refund-reason.spec.ts b/integration-tests/http/__tests__/refund-reason/refund-reason.spec.ts index 809fd14136..825cc7f8b1 100644 --- a/integration-tests/http/__tests__/refund-reason/refund-reason.spec.ts +++ b/integration-tests/http/__tests__/refund-reason/refund-reason.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/region/admin/region.spec.ts b/integration-tests/http/__tests__/region/admin/region.spec.ts index eebf62eca7..7fb880ba0b 100644 --- a/integration-tests/http/__tests__/region/admin/region.spec.ts +++ b/integration-tests/http/__tests__/region/admin/region.spec.ts @@ -1,5 +1,5 @@ import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/reservations/admin/reservations.spec.ts b/integration-tests/http/__tests__/reservations/admin/reservations.spec.ts index c502d3aa19..62dd5e7bd8 100644 --- a/integration-tests/http/__tests__/reservations/admin/reservations.spec.ts +++ b/integration-tests/http/__tests__/reservations/admin/reservations.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/returns/returns.spec.ts b/integration-tests/http/__tests__/returns/returns.spec.ts index b8d92b25cf..c83ce8a012 100644 --- a/integration-tests/http/__tests__/returns/returns.spec.ts +++ b/integration-tests/http/__tests__/returns/returns.spec.ts @@ -3,7 +3,7 @@ import { Modules, RuleOperator, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/sales-channel/admin/sales-channel.spec.ts b/integration-tests/http/__tests__/sales-channel/admin/sales-channel.spec.ts index ab3690b0b6..2353a8b2b2 100644 --- a/integration-tests/http/__tests__/sales-channel/admin/sales-channel.spec.ts +++ b/integration-tests/http/__tests__/sales-channel/admin/sales-channel.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/shipping-option/admin/shipping-option.spec.ts b/integration-tests/http/__tests__/shipping-option/admin/shipping-option.spec.ts index 94d8ab71ec..478e155651 100644 --- a/integration-tests/http/__tests__/shipping-option/admin/shipping-option.spec.ts +++ b/integration-tests/http/__tests__/shipping-option/admin/shipping-option.spec.ts @@ -1,5 +1,5 @@ import { RuleOperator } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/shipping-profile/admin/shipping-profile.spec.ts b/integration-tests/http/__tests__/shipping-profile/admin/shipping-profile.spec.ts index f73d8d75ec..987782f770 100644 --- a/integration-tests/http/__tests__/shipping-profile/admin/shipping-profile.spec.ts +++ b/integration-tests/http/__tests__/shipping-profile/admin/shipping-profile.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/stock-location/admin/fulfillment-provider.spec.ts b/integration-tests/http/__tests__/stock-location/admin/fulfillment-provider.spec.ts index cef71558ab..f3d39a7278 100644 --- a/integration-tests/http/__tests__/stock-location/admin/fulfillment-provider.spec.ts +++ b/integration-tests/http/__tests__/stock-location/admin/fulfillment-provider.spec.ts @@ -3,7 +3,7 @@ import { createAdminUser, } from "../../../../helpers/create-admin-user" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/integration-tests/http/__tests__/stock-location/admin/stock-location.spec.ts b/integration-tests/http/__tests__/stock-location/admin/stock-location.spec.ts index b64d6a6ac1..33ca332045 100644 --- a/integration-tests/http/__tests__/stock-location/admin/stock-location.spec.ts +++ b/integration-tests/http/__tests__/stock-location/admin/stock-location.spec.ts @@ -4,7 +4,7 @@ import { createAdminUser, } from "../../../../helpers/create-admin-user" -const { medusaIntegrationTestRunner } = require("medusa-test-utils") +const { medusaIntegrationTestRunner } = require("@medusajs/test-utils") jest.setTimeout(30000) diff --git a/integration-tests/http/__tests__/store/admin/store.spec.ts b/integration-tests/http/__tests__/store/admin/store.spec.ts index 6d44702539..0a23ba6407 100644 --- a/integration-tests/http/__tests__/store/admin/store.spec.ts +++ b/integration-tests/http/__tests__/store/admin/store.spec.ts @@ -1,6 +1,6 @@ import { IStoreModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/__tests__/upload/admin/upload.spec.ts b/integration-tests/http/__tests__/upload/admin/upload.spec.ts index 19a1d09cf1..c7ab53c1da 100644 --- a/integration-tests/http/__tests__/upload/admin/upload.spec.ts +++ b/integration-tests/http/__tests__/upload/admin/upload.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import FormData from "form-data" import fs from "fs/promises" import os from "os" diff --git a/integration-tests/http/__tests__/user/admin/user.spec.ts b/integration-tests/http/__tests__/user/admin/user.spec.ts index 78f8b7020e..17ef0fc28e 100644 --- a/integration-tests/http/__tests__/user/admin/user.spec.ts +++ b/integration-tests/http/__tests__/user/admin/user.spec.ts @@ -1,6 +1,6 @@ import { IAuthModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/http/medusa-config.js b/integration-tests/http/medusa-config.js index a041a846e3..4789cc0050 100644 --- a/integration-tests/http/medusa-config.js +++ b/integration-tests/http/medusa-config.js @@ -51,7 +51,7 @@ module.exports = defineConfig({ options: { providers: [ { - resolve: "@medusajs/file-local-next", + resolve: "@medusajs/file-local", id: "local", options: { // This is the directory where we can reliably write in CI environments diff --git a/integration-tests/http/package.json b/integration-tests/http/package.json index fd10100935..31c32ba4df 100644 --- a/integration-tests/http/package.json +++ b/integration-tests/http/package.json @@ -18,22 +18,22 @@ "@medusajs/event-bus-local": "workspace:*", "@medusajs/fulfillment": "workspace:^", "@medusajs/fulfillment-manual": "workspace:^", - "@medusajs/inventory-next": "workspace:^", + "@medusajs/inventory": "workspace:^", "@medusajs/medusa": "workspace:*", "@medusajs/modules-sdk": "workspace:^", "@medusajs/pricing": "workspace:^", "@medusajs/product": "workspace:^", "@medusajs/promotion": "workspace:^", "@medusajs/region": "workspace:^", - "@medusajs/stock-location-next": "workspace:^", + "@medusajs/stock-location": "workspace:^", "@medusajs/store": "workspace:^", "@medusajs/tax": "workspace:^", + "@medusajs/test-utils": "workspace:*", "@medusajs/user": "workspace:^", "@medusajs/utils": "workspace:^", "@medusajs/workflow-engine-inmemory": "workspace:*", "form-data": "^4.0.0", "jsonwebtoken": "^9.0.2", - "medusa-test-utils": "workspace:*", "pg": "^8.11.3" }, "devDependencies": { diff --git a/integration-tests/modules/__tests__/auth/admin/email-password-provider.spec.ts b/integration-tests/modules/__tests__/auth/admin/email-password-provider.spec.ts index b3dd4cc8c2..61fdb1636d 100644 --- a/integration-tests/modules/__tests__/auth/admin/email-password-provider.spec.ts +++ b/integration-tests/modules/__tests__/auth/admin/email-password-provider.spec.ts @@ -1,6 +1,6 @@ import { IAuthModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import Scrypt from "scrypt-kdf" import { adminHeaders, diff --git a/integration-tests/modules/__tests__/cart/store/add-promotions-to-cart.spec.ts b/integration-tests/modules/__tests__/cart/store/add-promotions-to-cart.spec.ts index c0bf3216d7..d44ec1b99c 100644 --- a/integration-tests/modules/__tests__/cart/store/add-promotions-to-cart.spec.ts +++ b/integration-tests/modules/__tests__/cart/store/add-promotions-to-cart.spec.ts @@ -5,7 +5,7 @@ import { Modules, PromotionType, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/cart/store/cart.workflows.spec.ts b/integration-tests/modules/__tests__/cart/store/cart.workflows.spec.ts index 044ba62b7e..246294fe5e 100644 --- a/integration-tests/modules/__tests__/cart/store/cart.workflows.spec.ts +++ b/integration-tests/modules/__tests__/cart/store/cart.workflows.spec.ts @@ -29,7 +29,7 @@ import { Modules, RuleOperator, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/cart/store/carts.spec.ts b/integration-tests/modules/__tests__/cart/store/carts.spec.ts index 93c4c5c598..8383e34876 100644 --- a/integration-tests/modules/__tests__/cart/store/carts.spec.ts +++ b/integration-tests/modules/__tests__/cart/store/carts.spec.ts @@ -21,7 +21,7 @@ import { PromotionType, RuleOperator, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, generatePublishableKey, diff --git a/integration-tests/modules/__tests__/cart/store/remove-promotions-from-cart.spec.ts b/integration-tests/modules/__tests__/cart/store/remove-promotions-from-cart.spec.ts index 5cc8767f5e..e66b7f5916 100644 --- a/integration-tests/modules/__tests__/cart/store/remove-promotions-from-cart.spec.ts +++ b/integration-tests/modules/__tests__/cart/store/remove-promotions-from-cart.spec.ts @@ -5,7 +5,7 @@ import { Modules, PromotionType, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/common/workflows.spec.ts b/integration-tests/modules/__tests__/common/workflows.spec.ts index ed8b9541c1..04191ddbd9 100644 --- a/integration-tests/modules/__tests__/common/workflows.spec.ts +++ b/integration-tests/modules/__tests__/common/workflows.spec.ts @@ -7,7 +7,7 @@ import { updateLinksWorkflowId, } from "@medusajs/core-flows" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/currency/admin/currency.spec.ts b/integration-tests/modules/__tests__/currency/admin/currency.spec.ts index aab4b3fd55..027ce1d8d2 100644 --- a/integration-tests/modules/__tests__/currency/admin/currency.spec.ts +++ b/integration-tests/modules/__tests__/currency/admin/currency.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/currency/store/currency.spec.ts b/integration-tests/modules/__tests__/currency/store/currency.spec.ts index fe500e8d36..2cdda6742e 100644 --- a/integration-tests/modules/__tests__/currency/store/currency.spec.ts +++ b/integration-tests/modules/__tests__/currency/store/currency.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generatePublishableKey, generateStoreHeaders, diff --git a/integration-tests/modules/__tests__/customer-group/admin/batch-add-customers.ts b/integration-tests/modules/__tests__/customer-group/admin/batch-add-customers.ts index 802f8efd5d..bca739b0b4 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/batch-add-customers.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/batch-add-customers.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/batch-remove-customers.ts b/integration-tests/modules/__tests__/customer-group/admin/batch-remove-customers.ts index 83b17679ec..c2cbf915ce 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/batch-remove-customers.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/batch-remove-customers.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/create-customer-group.ts b/integration-tests/modules/__tests__/customer-group/admin/create-customer-group.ts index d4cba8e88a..494e4aff45 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/create-customer-group.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/create-customer-group.ts @@ -1,5 +1,5 @@ import { createAdminUser } from "../../../../helpers/create-admin-user" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/delete-customer-group.ts b/integration-tests/modules/__tests__/customer-group/admin/delete-customer-group.ts index f96bd9d87e..ccfc1b72bb 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/delete-customer-group.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/delete-customer-group.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/list-customer-group-customers.ts b/integration-tests/modules/__tests__/customer-group/admin/list-customer-group-customers.ts index 45d0378cd3..30abe4d7d0 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/list-customer-group-customers.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/list-customer-group-customers.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/list-customer-groups.spec.ts b/integration-tests/modules/__tests__/customer-group/admin/list-customer-groups.spec.ts index a18f1e2c95..4ce32af16a 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/list-customer-groups.spec.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/list-customer-groups.spec.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/retrieve-customer-group.ts b/integration-tests/modules/__tests__/customer-group/admin/retrieve-customer-group.ts index a1c0ff492d..6d7e094e49 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/retrieve-customer-group.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/retrieve-customer-group.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer-group/admin/update-customer-group.ts b/integration-tests/modules/__tests__/customer-group/admin/update-customer-group.ts index 74205c2f52..94f09759dc 100644 --- a/integration-tests/modules/__tests__/customer-group/admin/update-customer-group.ts +++ b/integration-tests/modules/__tests__/customer-group/admin/update-customer-group.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/create-customer-addresses.ts b/integration-tests/modules/__tests__/customer/admin/create-customer-addresses.ts index 326af659e0..393b68cb06 100644 --- a/integration-tests/modules/__tests__/customer/admin/create-customer-addresses.ts +++ b/integration-tests/modules/__tests__/customer/admin/create-customer-addresses.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/create-customer.ts b/integration-tests/modules/__tests__/customer/admin/create-customer.ts index 706b0569b6..eccacf3d0b 100644 --- a/integration-tests/modules/__tests__/customer/admin/create-customer.ts +++ b/integration-tests/modules/__tests__/customer/admin/create-customer.ts @@ -1,5 +1,5 @@ import { createAdminUser } from "../../../../helpers/create-admin-user" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/delete-customer-address.spec.ts b/integration-tests/modules/__tests__/customer/admin/delete-customer-address.spec.ts index d7a788a63b..4cb1d9c7c5 100644 --- a/integration-tests/modules/__tests__/customer/admin/delete-customer-address.spec.ts +++ b/integration-tests/modules/__tests__/customer/admin/delete-customer-address.spec.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/delete-customer.ts b/integration-tests/modules/__tests__/customer/admin/delete-customer.ts index 756359e64d..3917f69e65 100644 --- a/integration-tests/modules/__tests__/customer/admin/delete-customer.ts +++ b/integration-tests/modules/__tests__/customer/admin/delete-customer.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts b/integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts index 609da41c49..6a91a25fcd 100644 --- a/integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts +++ b/integration-tests/modules/__tests__/customer/admin/list-customer-addresses.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/list-customers.spec.ts b/integration-tests/modules/__tests__/customer/admin/list-customers.spec.ts index d60f0454fc..0a21b2e321 100644 --- a/integration-tests/modules/__tests__/customer/admin/list-customers.spec.ts +++ b/integration-tests/modules/__tests__/customer/admin/list-customers.spec.ts @@ -6,7 +6,7 @@ import { import { ICustomerModuleService } from "@medusajs/types" -const { medusaIntegrationTestRunner } = require("medusa-test-utils") +const { medusaIntegrationTestRunner } = require("@medusajs/test-utils") jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/update-customer-address.spec.ts b/integration-tests/modules/__tests__/customer/admin/update-customer-address.spec.ts index cbb4b3b2af..8af02234bb 100644 --- a/integration-tests/modules/__tests__/customer/admin/update-customer-address.spec.ts +++ b/integration-tests/modules/__tests__/customer/admin/update-customer-address.spec.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/admin/update-customer.ts b/integration-tests/modules/__tests__/customer/admin/update-customer.ts index 30d9f77635..ebe6ef63d6 100644 --- a/integration-tests/modules/__tests__/customer/admin/update-customer.ts +++ b/integration-tests/modules/__tests__/customer/admin/update-customer.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/customer/store/create-customer-addresses.ts b/integration-tests/modules/__tests__/customer/store/create-customer-addresses.ts index 6d2d9c62c2..1c557f0bd0 100644 --- a/integration-tests/modules/__tests__/customer/store/create-customer-addresses.ts +++ b/integration-tests/modules/__tests__/customer/store/create-customer-addresses.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generatePublishableKey, generateStoreHeaders, diff --git a/integration-tests/modules/__tests__/customer/store/create-customer.spec.ts b/integration-tests/modules/__tests__/customer/store/create-customer.spec.ts index 2d4567a3bc..63100e80a8 100644 --- a/integration-tests/modules/__tests__/customer/store/create-customer.spec.ts +++ b/integration-tests/modules/__tests__/customer/store/create-customer.spec.ts @@ -2,7 +2,7 @@ import { IAuthModuleService } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" import jwt from "jsonwebtoken" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/customer/store/delete-customer-address.spec.ts b/integration-tests/modules/__tests__/customer/store/delete-customer-address.spec.ts index 08a22fadcc..f474c41174 100644 --- a/integration-tests/modules/__tests__/customer/store/delete-customer-address.spec.ts +++ b/integration-tests/modules/__tests__/customer/store/delete-customer-address.spec.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generatePublishableKey, generateStoreHeaders, diff --git a/integration-tests/modules/__tests__/customer/store/get-me.spec.ts b/integration-tests/modules/__tests__/customer/store/get-me.spec.ts index f1970db5af..17716300b4 100644 --- a/integration-tests/modules/__tests__/customer/store/get-me.spec.ts +++ b/integration-tests/modules/__tests__/customer/store/get-me.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generatePublishableKey, generateStoreHeaders, diff --git a/integration-tests/modules/__tests__/customer/store/list-customer-addresses.ts b/integration-tests/modules/__tests__/customer/store/list-customer-addresses.ts index a6c81f0d81..e84c725df8 100644 --- a/integration-tests/modules/__tests__/customer/store/list-customer-addresses.ts +++ b/integration-tests/modules/__tests__/customer/store/list-customer-addresses.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generatePublishableKey, generateStoreHeaders, diff --git a/integration-tests/modules/__tests__/customer/store/update-customer-address.spec.ts b/integration-tests/modules/__tests__/customer/store/update-customer-address.spec.ts index 24b4085c01..cc0820aee7 100644 --- a/integration-tests/modules/__tests__/customer/store/update-customer-address.spec.ts +++ b/integration-tests/modules/__tests__/customer/store/update-customer-address.spec.ts @@ -1,6 +1,6 @@ import { ICustomerModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generatePublishableKey, generateStoreHeaders, diff --git a/integration-tests/modules/__tests__/event-bus/index.spec.ts b/integration-tests/modules/__tests__/event-bus/index.spec.ts index 3f8a8e02fa..9ce50d4ab2 100644 --- a/integration-tests/modules/__tests__/event-bus/index.spec.ts +++ b/integration-tests/modules/__tests__/event-bus/index.spec.ts @@ -1,6 +1,6 @@ import { MedusaContainer } from "@medusajs/types" import { Modules, composeMessage } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import testEventPayloadHandlerMock from "../../src/subscribers/test-event-payload" jest.setTimeout(30000) diff --git a/integration-tests/modules/__tests__/fulfillment-providers/index.spec.ts b/integration-tests/modules/__tests__/fulfillment-providers/index.spec.ts index 59aa4d6c38..6bcc1e90bd 100644 --- a/integration-tests/modules/__tests__/fulfillment-providers/index.spec.ts +++ b/integration-tests/modules/__tests__/fulfillment-providers/index.spec.ts @@ -1,6 +1,6 @@ import { IFulfillmentModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(100000) diff --git a/integration-tests/modules/__tests__/fulfillment/fulfillment.workflows.spec.ts b/integration-tests/modules/__tests__/fulfillment/fulfillment.workflows.spec.ts index e865c1cc1b..e7913c69fd 100644 --- a/integration-tests/modules/__tests__/fulfillment/fulfillment.workflows.spec.ts +++ b/integration-tests/modules/__tests__/fulfillment/fulfillment.workflows.spec.ts @@ -12,7 +12,7 @@ import { StockLocationDTO, } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { generateCreateFulfillmentData, generateCreateShippingOptionsData, diff --git a/integration-tests/modules/__tests__/fulfillment/index.spec.ts b/integration-tests/modules/__tests__/fulfillment/index.spec.ts index 072a9c0ec2..be8b056273 100644 --- a/integration-tests/modules/__tests__/fulfillment/index.spec.ts +++ b/integration-tests/modules/__tests__/fulfillment/index.spec.ts @@ -1,6 +1,6 @@ import { IFulfillmentModuleService, StockLocationDTO } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" import { generateCreateFulfillmentData, diff --git a/integration-tests/modules/__tests__/index/search.spec.ts b/integration-tests/modules/__tests__/index/search.spec.ts index 1ce15aaa12..512907a1bb 100644 --- a/integration-tests/modules/__tests__/index/search.spec.ts +++ b/integration-tests/modules/__tests__/index/search.spec.ts @@ -1,6 +1,6 @@ import { IndexTypes } from "@medusajs/types" import { defaultCurrencies, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { setTimeout } from "timers/promises" import { adminHeaders, diff --git a/integration-tests/modules/__tests__/invites/accept-invite.spec.ts b/integration-tests/modules/__tests__/invites/accept-invite.spec.ts index 7fc9b5199b..2cdf167d81 100644 --- a/integration-tests/modules/__tests__/invites/accept-invite.spec.ts +++ b/integration-tests/modules/__tests__/invites/accept-invite.spec.ts @@ -1,6 +1,6 @@ import { IUserModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/invites/create-invite.spec.ts b/integration-tests/modules/__tests__/invites/create-invite.spec.ts index ce2ffb82c6..5a5cf2e02c 100644 --- a/integration-tests/modules/__tests__/invites/create-invite.spec.ts +++ b/integration-tests/modules/__tests__/invites/create-invite.spec.ts @@ -1,5 +1,5 @@ import { createAdminUser } from "../../../helpers/create-admin-user" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/invites/delete-invite.spec.ts b/integration-tests/modules/__tests__/invites/delete-invite.spec.ts index 4b3fd6ac3a..2a5509b4ad 100644 --- a/integration-tests/modules/__tests__/invites/delete-invite.spec.ts +++ b/integration-tests/modules/__tests__/invites/delete-invite.spec.ts @@ -1,6 +1,6 @@ import { IUserModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/invites/list-invites.spec.ts b/integration-tests/modules/__tests__/invites/list-invites.spec.ts index b8f18e13c0..7f5ee96079 100644 --- a/integration-tests/modules/__tests__/invites/list-invites.spec.ts +++ b/integration-tests/modules/__tests__/invites/list-invites.spec.ts @@ -1,6 +1,6 @@ import { IUserModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/invites/resend-invite.spec.ts b/integration-tests/modules/__tests__/invites/resend-invite.spec.ts index 423f947e99..57a8b03da5 100644 --- a/integration-tests/modules/__tests__/invites/resend-invite.spec.ts +++ b/integration-tests/modules/__tests__/invites/resend-invite.spec.ts @@ -1,6 +1,6 @@ import { IUserModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/invites/retrieve-invite.spec.ts b/integration-tests/modules/__tests__/invites/retrieve-invite.spec.ts index e68a958794..d0366e7052 100644 --- a/integration-tests/modules/__tests__/invites/retrieve-invite.spec.ts +++ b/integration-tests/modules/__tests__/invites/retrieve-invite.spec.ts @@ -1,6 +1,6 @@ import { IUserModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/cart-links.spec.ts b/integration-tests/modules/__tests__/link-modules/cart-links.spec.ts index 93b11f6ca9..448c0fd5f5 100644 --- a/integration-tests/modules/__tests__/link-modules/cart-links.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/cart-links.spec.ts @@ -6,7 +6,7 @@ import { ISalesChannelModuleService, } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/cart-region.spec.ts b/integration-tests/modules/__tests__/link-modules/cart-region.spec.ts index 609e73afe7..ed5742ffe5 100644 --- a/integration-tests/modules/__tests__/link-modules/cart-region.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/cart-region.spec.ts @@ -1,6 +1,6 @@ import { ICartModuleService, IRegionModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/define-link.spec.ts b/integration-tests/modules/__tests__/link-modules/define-link.spec.ts index 1cbe1d395c..1f6850adce 100644 --- a/integration-tests/modules/__tests__/link-modules/define-link.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/define-link.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import CurrencyModule from "@medusajs/currency" import { MedusaModule } from "@medusajs/modules-sdk" diff --git a/integration-tests/modules/__tests__/link-modules/fulfillment-set-location.spec.ts b/integration-tests/modules/__tests__/link-modules/fulfillment-set-location.spec.ts index bf988262d3..0427f00878 100644 --- a/integration-tests/modules/__tests__/link-modules/fulfillment-set-location.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/fulfillment-set-location.spec.ts @@ -7,7 +7,7 @@ import { Modules, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/index.ts b/integration-tests/modules/__tests__/link-modules/index.ts index 3c4579e826..cf5e8183c0 100644 --- a/integration-tests/modules/__tests__/link-modules/index.ts +++ b/integration-tests/modules/__tests__/link-modules/index.ts @@ -1,7 +1,7 @@ import { getMigrationPlanner, initialize } from "@medusajs/link-modules" import { MedusaModule } from "@medusajs/modules-sdk" import { ModuleJoinerConfig } from "@medusajs/types" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(5000000) diff --git a/integration-tests/modules/__tests__/link-modules/product-variant-price-set.spec.ts b/integration-tests/modules/__tests__/link-modules/product-variant-price-set.spec.ts index 21c74a201f..dfbd9db37d 100644 --- a/integration-tests/modules/__tests__/link-modules/product-variant-price-set.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/product-variant-price-set.spec.ts @@ -4,7 +4,7 @@ import { Modules, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/publishable-key-sales-channel.spec.ts b/integration-tests/modules/__tests__/link-modules/publishable-key-sales-channel.spec.ts index 48e7e5e6b7..c8808cf8a8 100644 --- a/integration-tests/modules/__tests__/link-modules/publishable-key-sales-channel.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/publishable-key-sales-channel.spec.ts @@ -3,7 +3,7 @@ import { ISalesChannelModuleService, } from "@medusajs/types" import { Modules, remoteQueryObjectFromString } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/region-payment-provider.spec.ts b/integration-tests/modules/__tests__/link-modules/region-payment-provider.spec.ts index 8c62f3f66b..698600013f 100644 --- a/integration-tests/modules/__tests__/link-modules/region-payment-provider.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/region-payment-provider.spec.ts @@ -1,6 +1,6 @@ import { IRegionModuleService } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/sales-channel-location.spec.ts b/integration-tests/modules/__tests__/link-modules/sales-channel-location.spec.ts index c3da244e81..d57091d133 100644 --- a/integration-tests/modules/__tests__/link-modules/sales-channel-location.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/sales-channel-location.spec.ts @@ -3,7 +3,7 @@ import { IStockLocationService, } from "@medusajs/types" import { Modules, remoteQueryObjectFromString } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/link-modules/shipping-option-price-set.spec.ts b/integration-tests/modules/__tests__/link-modules/shipping-option-price-set.spec.ts index 5c4592b2bc..9411ad6ef4 100644 --- a/integration-tests/modules/__tests__/link-modules/shipping-option-price-set.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/shipping-option-price-set.spec.ts @@ -3,7 +3,7 @@ import { IPricingModuleService, } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/link-modules/store-currency.spec.ts b/integration-tests/modules/__tests__/link-modules/store-currency.spec.ts index 5db4c388ef..fdc1df8727 100644 --- a/integration-tests/modules/__tests__/link-modules/store-currency.spec.ts +++ b/integration-tests/modules/__tests__/link-modules/store-currency.spec.ts @@ -1,6 +1,6 @@ import { ICurrencyModuleService, IStoreModuleService } from "@medusajs/types" import { Modules, remoteQueryObjectFromString } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/modules/load-standalone.ts b/integration-tests/modules/__tests__/modules/load-standalone.ts index 0e58a5f68c..4b69425b5d 100644 --- a/integration-tests/modules/__tests__/modules/load-standalone.ts +++ b/integration-tests/modules/__tests__/modules/load-standalone.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { MedusaApp } from "@medusajs/modules-sdk" import { IProductModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" diff --git a/integration-tests/modules/__tests__/modules/remote-query.spec.ts b/integration-tests/modules/__tests__/modules/remote-query.spec.ts index 9a2fad5744..df93388409 100644 --- a/integration-tests/modules/__tests__/modules/remote-query.spec.ts +++ b/integration-tests/modules/__tests__/modules/remote-query.spec.ts @@ -1,6 +1,6 @@ import { IRegionModuleService, RemoteQueryFunction } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../..//helpers/create-admin-user" import { adminHeaders } from "../../../helpers/create-admin-user" diff --git a/integration-tests/modules/__tests__/notification/admin/notification.spec.ts b/integration-tests/modules/__tests__/notification/admin/notification.spec.ts index 32507de312..a2f1975f29 100644 --- a/integration-tests/modules/__tests__/notification/admin/notification.spec.ts +++ b/integration-tests/modules/__tests__/notification/admin/notification.spec.ts @@ -5,7 +5,10 @@ import { Logger, } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { TestEventUtils, medusaIntegrationTestRunner } from "medusa-test-utils" +import { + TestEventUtils, + medusaIntegrationTestRunner, +} from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/order/draft-order.spec.ts b/integration-tests/modules/__tests__/order/draft-order.spec.ts index d5162251a0..b57e3812b8 100644 --- a/integration-tests/modules/__tests__/order/draft-order.spec.ts +++ b/integration-tests/modules/__tests__/order/draft-order.spec.ts @@ -10,7 +10,7 @@ import { ITaxModuleService, } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/order/order.spec.ts b/integration-tests/modules/__tests__/order/order.spec.ts index e51b45c64f..24cac5f8c9 100644 --- a/integration-tests/modules/__tests__/order/order.spec.ts +++ b/integration-tests/modules/__tests__/order/order.spec.ts @@ -1,6 +1,6 @@ import { IOrderModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/order/workflows/begin-order-claim.spec.ts b/integration-tests/modules/__tests__/order/workflows/begin-order-claim.spec.ts index dc74c53f3d..c8334e3d90 100644 --- a/integration-tests/modules/__tests__/order/workflows/begin-order-claim.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/begin-order-claim.spec.ts @@ -19,7 +19,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/begin-order-exchange.spec.ts b/integration-tests/modules/__tests__/order/workflows/begin-order-exchange.spec.ts index 06a231b215..aa0caf90b2 100644 --- a/integration-tests/modules/__tests__/order/workflows/begin-order-exchange.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/begin-order-exchange.spec.ts @@ -21,7 +21,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/begin-order-return.spec.ts b/integration-tests/modules/__tests__/order/workflows/begin-order-return.spec.ts index a746ab6fc4..43b5a4727b 100644 --- a/integration-tests/modules/__tests__/order/workflows/begin-order-return.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/begin-order-return.spec.ts @@ -17,7 +17,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/cancel-order.spec.ts b/integration-tests/modules/__tests__/order/workflows/cancel-order.spec.ts index 258c2d8e59..144f5d29f6 100644 --- a/integration-tests/modules/__tests__/order/workflows/cancel-order.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/cancel-order.spec.ts @@ -17,7 +17,7 @@ import { Modules, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createOrderFixture, prepareDataFixtures } from "./__fixtures__" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/create-complete-return.spec.ts b/integration-tests/modules/__tests__/order/workflows/create-complete-return.spec.ts index b7d505997e..6d9a4a9fd1 100644 --- a/integration-tests/modules/__tests__/order/workflows/create-complete-return.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/create-complete-return.spec.ts @@ -21,7 +21,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/create-fulfillment.spec.ts b/integration-tests/modules/__tests__/order/workflows/create-fulfillment.spec.ts index b4e2d8b01c..baa91169b3 100644 --- a/integration-tests/modules/__tests__/order/workflows/create-fulfillment.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/create-fulfillment.spec.ts @@ -20,7 +20,7 @@ import { Modules, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/create-shipment.spec.ts b/integration-tests/modules/__tests__/order/workflows/create-shipment.spec.ts index 673a25554b..7ae6fab32f 100644 --- a/integration-tests/modules/__tests__/order/workflows/create-shipment.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/create-shipment.spec.ts @@ -20,7 +20,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(500000) diff --git a/integration-tests/modules/__tests__/order/workflows/order-change-actions.ts b/integration-tests/modules/__tests__/order/workflows/order-change-actions.ts index 0572e1f0cd..7139ae0c42 100644 --- a/integration-tests/modules/__tests__/order/workflows/order-change-actions.ts +++ b/integration-tests/modules/__tests__/order/workflows/order-change-actions.ts @@ -14,7 +14,7 @@ import { OrderDTO, } from "@medusajs/types" import { ChangeActionType, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createOrderFixture, prepareDataFixtures } from "./__fixtures__" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/order/workflows/order-change.spec.ts b/integration-tests/modules/__tests__/order/workflows/order-change.spec.ts index 0eef5d9645..524e98f944 100644 --- a/integration-tests/modules/__tests__/order/workflows/order-change.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/order-change.spec.ts @@ -9,7 +9,7 @@ import { } from "@medusajs/core-flows" import { IOrderModuleService, OrderChangeDTO, OrderDTO } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createOrderFixture, prepareDataFixtures } from "./__fixtures__" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/order/workflows/return/create-return-shipping.spec.ts b/integration-tests/modules/__tests__/order/workflows/return/create-return-shipping.spec.ts index 56c6f8ac9f..401e9ac54b 100644 --- a/integration-tests/modules/__tests__/order/workflows/return/create-return-shipping.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/return/create-return-shipping.spec.ts @@ -8,7 +8,7 @@ import { Modules, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createOrderFixture, prepareDataFixtures } from "../__fixtures__" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/order/workflows/return/items.spec.ts b/integration-tests/modules/__tests__/order/workflows/return/items.spec.ts index 8080ed7aad..fb2ee5a3aa 100644 --- a/integration-tests/modules/__tests__/order/workflows/return/items.spec.ts +++ b/integration-tests/modules/__tests__/order/workflows/return/items.spec.ts @@ -9,7 +9,7 @@ import { Modules, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createOrderFixture, prepareDataFixtures } from "../__fixtures__" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/payment/payment-providers.spec.ts b/integration-tests/modules/__tests__/payment/payment-providers.spec.ts index 24429d38e4..6e0f33f59b 100644 --- a/integration-tests/modules/__tests__/payment/payment-providers.spec.ts +++ b/integration-tests/modules/__tests__/payment/payment-providers.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { adminHeaders, createAdminUser, diff --git a/integration-tests/modules/__tests__/payment/payment-session.workflows.spec.ts b/integration-tests/modules/__tests__/payment/payment-session.workflows.spec.ts index 375086580c..ecfd2d21ad 100644 --- a/integration-tests/modules/__tests__/payment/payment-session.workflows.spec.ts +++ b/integration-tests/modules/__tests__/payment/payment-session.workflows.spec.ts @@ -4,7 +4,7 @@ import { } from "@medusajs/core-flows" import { IPaymentModuleService, IRegionModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/price-lists/admin/price-lists.spec.ts b/integration-tests/modules/__tests__/price-lists/admin/price-lists.spec.ts index 2acfb5d49b..140b7cf52e 100644 --- a/integration-tests/modules/__tests__/price-lists/admin/price-lists.spec.ts +++ b/integration-tests/modules/__tests__/price-lists/admin/price-lists.spec.ts @@ -5,7 +5,7 @@ import { IRegionModuleService, } from "@medusajs/types" import { Modules, PriceListStatus, PriceListType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" import { createVariantPriceSet } from "../../../helpers/create-variant-price-set" diff --git a/integration-tests/modules/__tests__/price-lists/store/get-product.ts b/integration-tests/modules/__tests__/price-lists/store/get-product.ts index 6afdd2e244..2b8f6e6e9c 100644 --- a/integration-tests/modules/__tests__/price-lists/store/get-product.ts +++ b/integration-tests/modules/__tests__/price-lists/store/get-product.ts @@ -1,5 +1,5 @@ import { PriceListStatus, PriceListType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, generatePublishableKey, diff --git a/integration-tests/modules/__tests__/product/admin/products.spec.ts b/integration-tests/modules/__tests__/product/admin/products.spec.ts index 3fb1f5a8ba..1cea774496 100644 --- a/integration-tests/modules/__tests__/product/admin/products.spec.ts +++ b/integration-tests/modules/__tests__/product/admin/products.spec.ts @@ -6,7 +6,7 @@ import { ProductVariantDTO, } from "@medusajs/types" import { Modules, PriceListStatus, PriceListType } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" import { createVariantPriceSet } from "../../../helpers/create-variant-price-set" diff --git a/integration-tests/modules/__tests__/product/workflows/batch-products.spec.ts b/integration-tests/modules/__tests__/product/workflows/batch-products.spec.ts index 4856d5dca8..024e0cd8f7 100644 --- a/integration-tests/modules/__tests__/product/workflows/batch-products.spec.ts +++ b/integration-tests/modules/__tests__/product/workflows/batch-products.spec.ts @@ -6,7 +6,7 @@ import { } from "@medusajs/core-flows" import { IProductModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/regions/admin/regions.spec.ts b/integration-tests/modules/__tests__/regions/admin/regions.spec.ts index 50b7711343..410ec601c0 100644 --- a/integration-tests/modules/__tests__/regions/admin/regions.spec.ts +++ b/integration-tests/modules/__tests__/regions/admin/regions.spec.ts @@ -1,6 +1,6 @@ import { IRegionModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/regions/workflows/create-region.spec.ts b/integration-tests/modules/__tests__/regions/workflows/create-region.spec.ts index 28b104e2c6..505a6775a0 100644 --- a/integration-tests/modules/__tests__/regions/workflows/create-region.spec.ts +++ b/integration-tests/modules/__tests__/regions/workflows/create-region.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createRegionsWorkflow } from "@medusajs/core-flows" import { MedusaContainer, RegionDTO } from "@medusajs/types" import { createAdminUser } from "../../../../helpers/create-admin-user" diff --git a/integration-tests/modules/__tests__/regions/workflows/update-region.spec.ts b/integration-tests/modules/__tests__/regions/workflows/update-region.spec.ts index 4b5063ee91..65228e6543 100644 --- a/integration-tests/modules/__tests__/regions/workflows/update-region.spec.ts +++ b/integration-tests/modules/__tests__/regions/workflows/update-region.spec.ts @@ -1,6 +1,6 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { updateRegionsWorkflow } from "@medusajs/core-flows" -import {ContainerLike, MedusaContainer, RegionDTO} from "@medusajs/types" +import { ContainerLike, MedusaContainer, RegionDTO } from "@medusajs/types" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(200000) diff --git a/integration-tests/modules/__tests__/shipping-options/store/shipping-options.spec.ts b/integration-tests/modules/__tests__/shipping-options/store/shipping-options.spec.ts index 0e963277ca..b86e3a7800 100644 --- a/integration-tests/modules/__tests__/shipping-options/store/shipping-options.spec.ts +++ b/integration-tests/modules/__tests__/shipping-options/store/shipping-options.spec.ts @@ -3,7 +3,7 @@ import { IRegionModuleService, } from "@medusajs/types" import { ContainerRegistrationKeys, Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser, generatePublishableKey, diff --git a/integration-tests/modules/__tests__/shipping-options/workflows/batch-shipping-options-rules.ts b/integration-tests/modules/__tests__/shipping-options/workflows/batch-shipping-options-rules.ts index 74607c4754..6ae4109bbf 100644 --- a/integration-tests/modules/__tests__/shipping-options/workflows/batch-shipping-options-rules.ts +++ b/integration-tests/modules/__tests__/shipping-options/workflows/batch-shipping-options-rules.ts @@ -19,7 +19,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/integration-tests/modules/__tests__/shipping-options/workflows/create-shipping-options.ts b/integration-tests/modules/__tests__/shipping-options/workflows/create-shipping-options.ts index 403da1c36b..33851ab62f 100644 --- a/integration-tests/modules/__tests__/shipping-options/workflows/create-shipping-options.ts +++ b/integration-tests/modules/__tests__/shipping-options/workflows/create-shipping-options.ts @@ -13,7 +13,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/integration-tests/modules/__tests__/shipping-options/workflows/delete-shipping-options.ts b/integration-tests/modules/__tests__/shipping-options/workflows/delete-shipping-options.ts index 0f56af8ba3..b246a10232 100644 --- a/integration-tests/modules/__tests__/shipping-options/workflows/delete-shipping-options.ts +++ b/integration-tests/modules/__tests__/shipping-options/workflows/delete-shipping-options.ts @@ -16,7 +16,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/integration-tests/modules/__tests__/shipping-options/workflows/update-shipping-options.ts b/integration-tests/modules/__tests__/shipping-options/workflows/update-shipping-options.ts index c5719f5ef3..aa28d54213 100644 --- a/integration-tests/modules/__tests__/shipping-options/workflows/update-shipping-options.ts +++ b/integration-tests/modules/__tests__/shipping-options/workflows/update-shipping-options.ts @@ -17,7 +17,7 @@ import { RuleOperator, remoteQueryObjectFromString, } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/integration-tests/modules/__tests__/store/admin/store.spec.ts b/integration-tests/modules/__tests__/store/admin/store.spec.ts index 77de636308..4f3624e40f 100644 --- a/integration-tests/modules/__tests__/store/admin/store.spec.ts +++ b/integration-tests/modules/__tests__/store/admin/store.spec.ts @@ -1,6 +1,6 @@ import { IStoreModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/tax/admin/tax.spec.ts b/integration-tests/modules/__tests__/tax/admin/tax.spec.ts index d1e8fe57d5..5727d42a82 100644 --- a/integration-tests/modules/__tests__/tax/admin/tax.spec.ts +++ b/integration-tests/modules/__tests__/tax/admin/tax.spec.ts @@ -1,7 +1,7 @@ import { ITaxModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/tax/workflow/tax.spec.ts b/integration-tests/modules/__tests__/tax/workflow/tax.spec.ts index ed45a15840..4250dc6856 100644 --- a/integration-tests/modules/__tests__/tax/workflow/tax.spec.ts +++ b/integration-tests/modules/__tests__/tax/workflow/tax.spec.ts @@ -5,7 +5,7 @@ import { updateTaxRatesWorkflow, } from "@medusajs/core-flows" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/users/get-me.spec.ts b/integration-tests/modules/__tests__/users/get-me.spec.ts index 72ee2dcd0e..b6c3071b1c 100644 --- a/integration-tests/modules/__tests__/users/get-me.spec.ts +++ b/integration-tests/modules/__tests__/users/get-me.spec.ts @@ -1,4 +1,4 @@ -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/users/update-user.spec.ts b/integration-tests/modules/__tests__/users/update-user.spec.ts index 76f057313f..16ce480082 100644 --- a/integration-tests/modules/__tests__/users/update-user.spec.ts +++ b/integration-tests/modules/__tests__/users/update-user.spec.ts @@ -1,6 +1,6 @@ import { IUserModuleService } from "@medusajs/types" import { Modules } from "@medusajs/utils" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" jest.setTimeout(50000) diff --git a/integration-tests/modules/__tests__/workflow-engine/tests.ts b/integration-tests/modules/__tests__/workflow-engine/tests.ts index 8e58f3781d..8855260d15 100644 --- a/integration-tests/modules/__tests__/workflow-engine/tests.ts +++ b/integration-tests/modules/__tests__/workflow-engine/tests.ts @@ -4,7 +4,7 @@ import { StepResponse, WorkflowData, } from "@medusajs/framework/workflows-sdk" -import { medusaIntegrationTestRunner } from "medusa-test-utils" +import { medusaIntegrationTestRunner } from "@medusajs/test-utils" import { createAdminUser } from "../../../helpers/create-admin-user" export const workflowEngineTestSuite = ( diff --git a/integration-tests/modules/medusa-config.js b/integration-tests/modules/medusa-config.js index df3b3e6ae3..b6c8ba073e 100644 --- a/integration-tests/modules/medusa-config.js +++ b/integration-tests/modules/medusa-config.js @@ -64,11 +64,11 @@ module.exports = { }, [Modules.LOCKING]: true, [Modules.STOCK_LOCATION]: { - resolve: "@medusajs/stock-location-next", + resolve: "@medusajs/stock-location", options: {}, }, [Modules.INVENTORY]: { - resolve: "@medusajs/inventory-next", + resolve: "@medusajs/inventory", options: {}, }, [Modules.PRODUCT]: true, diff --git a/integration-tests/modules/package.json b/integration-tests/modules/package.json index 172ff85732..b84a0014e6 100644 --- a/integration-tests/modules/package.json +++ b/integration-tests/modules/package.json @@ -20,7 +20,7 @@ "@medusajs/framework": "workspace:^", "@medusajs/fulfillment": "workspace:^", "@medusajs/fulfillment-manual": "workspace:^", - "@medusajs/inventory-next": "workspace:^", + "@medusajs/inventory": "workspace:^", "@medusajs/link-modules": "workspace:^", "@medusajs/medusa": "workspace:*", "@medusajs/modules-sdk": "workspace:^", @@ -29,15 +29,15 @@ "@medusajs/product": "workspace:^", "@medusajs/promotion": "workspace:^", "@medusajs/region": "workspace:^", - "@medusajs/stock-location-next": "workspace:^", + "@medusajs/stock-location": "workspace:^", "@medusajs/store": "workspace:^", "@medusajs/tax": "workspace:^", + "@medusajs/test-utils": "workspace:*", "@medusajs/user": "workspace:^", "@medusajs/utils": "workspace:^", "@medusajs/workflow-engine-inmemory": "workspace:*", "faker": "^5.5.3", "jsonwebtoken": "^9.0.2", - "medusa-test-utils": "workspace:*", "pg": "^8.11.3", "scrypt-kdf": "^2.0.1" }, diff --git a/packages/cli/create-medusa-app/package.json b/packages/cli/create-medusa-app/package.json index 91cee99b2d..828b9844b5 100644 --- a/packages/cli/create-medusa-app/package.json +++ b/packages/cli/create-medusa-app/package.json @@ -13,11 +13,11 @@ "watch": "tsc --watch" }, "dependencies": { + "@medusajs/telemetry": "^0.0.17", "boxen": "^5", "chalk": "^5.2.0", "commander": "^10.0.1", "inquirer": "^9.2.2", - "medusa-telemetry": "^0.0.17", "nanoid": "^4.0.2", "node-emoji": "^2.0.2", "node-fetch": "^3.3.1", diff --git a/packages/cli/create-medusa-app/src/commands/create.ts b/packages/cli/create-medusa-app/src/commands/create.ts index 19ba1c206d..ba0a95c801 100644 --- a/packages/cli/create-medusa-app/src/commands/create.ts +++ b/packages/cli/create-medusa-app/src/commands/create.ts @@ -13,7 +13,7 @@ import logMessage from "../utils/log-message.js" import createAbortController, { isAbortError, } from "../utils/create-abort-controller.js" -import { track } from "medusa-telemetry" +import { track } from "@medusajs/telemetry" import boxen from "boxen" import { emojify } from "node-emoji" import ProcessManager from "../utils/process-manager.js" diff --git a/packages/cli/medusa-cli/package.json b/packages/cli/medusa-cli/package.json index a18e287cb1..31dcf56ecc 100644 --- a/packages/cli/medusa-cli/package.json +++ b/packages/cli/medusa-cli/package.json @@ -1,5 +1,5 @@ { - "name": "@medusajs/medusa-cli", + "name": "@medusajs/cli", "version": "1.3.22", "description": "Command Line interface for Medusa Commerce", "main": "dist/index.js", @@ -46,6 +46,7 @@ "typescript": "^5.6.2" }, "dependencies": { + "@medusajs/telemetry": "^0.0.17", "@medusajs/utils": "1.11.9", "@types/express": "^4.17.17", "chalk": "^4.0.0", @@ -60,7 +61,6 @@ "inquirer": "^8.0.0", "is-valid-path": "^0.1.1", "meant": "^1.0.3", - "medusa-telemetry": "^0.0.17", "ora": "^5.4.1", "pg": "^8.11.3", "pg-god": "^1.0.12", diff --git a/packages/cli/medusa-cli/src/commands/new.ts b/packages/cli/medusa-cli/src/commands/new.ts index e1fb047145..d1c5fc62f9 100644 --- a/packages/cli/medusa-cli/src/commands/new.ts +++ b/packages/cli/medusa-cli/src/commands/new.ts @@ -16,7 +16,7 @@ import url from "url" // @ts-ignore import inquirer from "inquirer" import { createDatabase } from "pg-god" -import { track } from "medusa-telemetry" +import { track } from "@medusajs/telemetry" import reporter from "../reporter" import { getPackageManager, setPackageManager } from "../util/package-manager" diff --git a/packages/cli/medusa-cli/src/create-cli.ts b/packages/cli/medusa-cli/src/create-cli.ts index f817e618c7..a62c780ddf 100644 --- a/packages/cli/medusa-cli/src/create-cli.ts +++ b/packages/cli/medusa-cli/src/create-cli.ts @@ -1,5 +1,5 @@ import { sync as existsSync } from "fs-exists-cached" -import { setTelemetryEnabled } from "medusa-telemetry" +import { setTelemetryEnabled } from "@medusajs/telemetry" import path from "path" import resolveCwd from "resolve-cwd" import { newStarter } from "./commands/new" diff --git a/packages/cli/medusa-cli/src/reporter/index.ts b/packages/cli/medusa-cli/src/reporter/index.ts index ae2bd790ae..1f64f06fb3 100644 --- a/packages/cli/medusa-cli/src/reporter/index.ts +++ b/packages/cli/medusa-cli/src/reporter/index.ts @@ -1,4 +1,4 @@ -import { track } from "medusa-telemetry" +import { track } from "@medusajs/telemetry" import ora from "ora" import stackTrace from "stack-trace" import { ulid } from "ulid" diff --git a/packages/core/framework/package.json b/packages/core/framework/package.json index c756103c9f..fd4cb99877 100644 --- a/packages/core/framework/package.json +++ b/packages/core/framework/package.json @@ -52,7 +52,7 @@ "test": "jest --runInBand --bail --passWithNoTests --forceExit" }, "devDependencies": { - "@medusajs/medusa-cli": "^1.3.22", + "@medusajs/cli": "^1.3.22", "@mikro-orm/core": "5.9.7", "@mikro-orm/knex": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -73,6 +73,7 @@ "@jercle/yargonaut": "^1.1.5", "@medusajs/modules-sdk": "^1.12.11", "@medusajs/orchestration": "^0.5.7", + "@medusajs/telemetry": "^0.0.17", "@medusajs/types": "^1.11.16", "@medusajs/utils": "^1.11.9", "@medusajs/workflows-sdk": "^0.1.6", @@ -84,13 +85,12 @@ "express": "^4.21.0", "express-session": "^1.17.3", "jsonwebtoken": "^9.0.2", - "medusa-telemetry": "^0.0.17", "morgan": "^1.9.1", "tsconfig-paths": "^4.2.0", "zod": "3.22.4" }, "peerDependencies": { - "@medusajs/medusa-cli": "^1.3.22", + "@medusajs/cli": "^1.3.22", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/knex": "5.9.7", diff --git a/packages/core/framework/src/feature-flags/feature-flag-loader.ts b/packages/core/framework/src/feature-flags/feature-flag-loader.ts index 02ad5ff541..038a890617 100644 --- a/packages/core/framework/src/feature-flags/feature-flag-loader.ts +++ b/packages/core/framework/src/feature-flags/feature-flag-loader.ts @@ -8,7 +8,7 @@ import { isTruthy, objectFromStringPath, } from "@medusajs/utils" -import { trackFeatureFlag } from "medusa-telemetry" +import { trackFeatureFlag } from "@medusajs/telemetry" import { join, normalize } from "path" import { logger } from "../logger" import { FlagSettings } from "./types" diff --git a/packages/core/framework/src/index.ts b/packages/core/framework/src/index.ts index 7954c016c6..3d78406d5d 100644 --- a/packages/core/framework/src/index.ts +++ b/packages/core/framework/src/index.ts @@ -12,6 +12,6 @@ export * from "./workflows" export * from "./telemetry" export * from "./zod" -export const MEDUSA_CLI_PATH = require.resolve("@medusajs/medusa-cli") +export const MEDUSA_CLI_PATH = require.resolve("@medusajs/cli") export { Query } from "@medusajs/modules-sdk" diff --git a/packages/core/framework/src/logger/index.ts b/packages/core/framework/src/logger/index.ts index f089361cf8..620584d024 100644 --- a/packages/core/framework/src/logger/index.ts +++ b/packages/core/framework/src/logger/index.ts @@ -1,3 +1,3 @@ -import logger from "@medusajs/medusa-cli/dist/reporter" +import logger from "@medusajs/cli/dist/reporter" export { logger } diff --git a/packages/core/utils/src/common/__tests__/define-config.spec.ts b/packages/core/utils/src/common/__tests__/define-config.spec.ts index 929b432859..fba6873b15 100644 --- a/packages/core/utils/src/common/__tests__/define-config.spec.ts +++ b/packages/core/utils/src/common/__tests__/define-config.spec.ts @@ -19,7 +19,7 @@ describe("defineConfig", function () { "providers": [ { "id": "emailpass", - "resolve": "@medusajs/auth-emailpass", + "resolve": "@medusajs/medusa/auth-emailpass", }, ], }, @@ -45,7 +45,7 @@ describe("defineConfig", function () { "providers": [ { "id": "local", - "resolve": "@medusajs/file-local-next", + "resolve": "@medusajs/medusa/file-local", }, ], }, @@ -56,14 +56,14 @@ describe("defineConfig", function () { "providers": [ { "id": "manual", - "resolve": "@medusajs/fulfillment-manual", + "resolve": "@medusajs/medusa/fulfillment-manual", }, ], }, "resolve": "@medusajs/medusa/fulfillment", }, "inventory": { - "resolve": "@medusajs/medusa/inventory-next", + "resolve": "@medusajs/medusa/inventory", }, "locking": { "resolve": "@medusajs/medusa/locking", @@ -79,7 +79,7 @@ describe("defineConfig", function () { ], "name": "Local Notification Provider", }, - "resolve": "@medusajs/notification-local", + "resolve": "@medusajs/medusa/notification-local", }, ], }, @@ -107,7 +107,7 @@ describe("defineConfig", function () { "resolve": "@medusajs/medusa/sales-channel", }, "stock_location": { - "resolve": "@medusajs/medusa/stock-location-next", + "resolve": "@medusajs/medusa/stock-location", }, "store": { "resolve": "@medusajs/medusa/store", @@ -168,7 +168,7 @@ describe("defineConfig", function () { "providers": [ { "id": "emailpass", - "resolve": "@medusajs/auth-emailpass", + "resolve": "@medusajs/medusa/auth-emailpass", }, ], }, @@ -194,7 +194,7 @@ describe("defineConfig", function () { "providers": [ { "id": "local", - "resolve": "@medusajs/file-local-next", + "resolve": "@medusajs/medusa/file-local", }, ], }, @@ -205,14 +205,14 @@ describe("defineConfig", function () { "providers": [ { "id": "manual", - "resolve": "@medusajs/fulfillment-manual", + "resolve": "@medusajs/medusa/fulfillment-manual", }, ], }, "resolve": "@medusajs/medusa/fulfillment", }, "inventory": { - "resolve": "@medusajs/medusa/inventory-next", + "resolve": "@medusajs/medusa/inventory", }, "locking": { "resolve": "@medusajs/medusa/locking", @@ -228,7 +228,7 @@ describe("defineConfig", function () { ], "name": "Local Notification Provider", }, - "resolve": "@medusajs/notification-local", + "resolve": "@medusajs/medusa/notification-local", }, ], }, @@ -256,7 +256,7 @@ describe("defineConfig", function () { "resolve": "@medusajs/medusa/sales-channel", }, "stock_location": { - "resolve": "@medusajs/medusa/stock-location-next", + "resolve": "@medusajs/medusa/stock-location", }, "store": { "resolve": "@medusajs/medusa/store", @@ -325,7 +325,7 @@ describe("defineConfig", function () { "providers": [ { "id": "emailpass", - "resolve": "@medusajs/auth-emailpass", + "resolve": "@medusajs/medusa/auth-emailpass", }, ], }, @@ -351,7 +351,7 @@ describe("defineConfig", function () { "providers": [ { "id": "local", - "resolve": "@medusajs/file-local-next", + "resolve": "@medusajs/medusa/file-local", }, ], }, @@ -362,14 +362,14 @@ describe("defineConfig", function () { "providers": [ { "id": "manual", - "resolve": "@medusajs/fulfillment-manual", + "resolve": "@medusajs/medusa/fulfillment-manual", }, ], }, "resolve": "@medusajs/medusa/fulfillment", }, "inventory": { - "resolve": "@medusajs/medusa/inventory-next", + "resolve": "@medusajs/medusa/inventory", }, "locking": { "resolve": "@medusajs/medusa/locking", @@ -385,7 +385,7 @@ describe("defineConfig", function () { ], "name": "Local Notification Provider", }, - "resolve": "@medusajs/notification-local", + "resolve": "@medusajs/medusa/notification-local", }, ], }, @@ -413,7 +413,7 @@ describe("defineConfig", function () { "resolve": "@medusajs/medusa/sales-channel", }, "stock_location": { - "resolve": "@medusajs/medusa/stock-location-next", + "resolve": "@medusajs/medusa/stock-location", }, "store": { "resolve": "@medusajs/medusa/store", @@ -483,7 +483,7 @@ describe("defineConfig", function () { "providers": [ { "id": "emailpass", - "resolve": "@medusajs/auth-emailpass", + "resolve": "@medusajs/medusa/auth-emailpass", }, ], }, @@ -509,7 +509,7 @@ describe("defineConfig", function () { "providers": [ { "id": "local", - "resolve": "@medusajs/file-local-next", + "resolve": "@medusajs/medusa/file-local", }, ], }, @@ -520,14 +520,14 @@ describe("defineConfig", function () { "providers": [ { "id": "manual", - "resolve": "@medusajs/fulfillment-manual", + "resolve": "@medusajs/medusa/fulfillment-manual", }, ], }, "resolve": "@medusajs/medusa/fulfillment", }, "inventory": { - "resolve": "@medusajs/medusa/inventory-next", + "resolve": "@medusajs/medusa/inventory", }, "locking": { "resolve": "@medusajs/medusa/locking", @@ -543,7 +543,7 @@ describe("defineConfig", function () { ], "name": "Local Notification Provider", }, - "resolve": "@medusajs/notification-local", + "resolve": "@medusajs/medusa/notification-local", }, ], }, @@ -571,7 +571,7 @@ describe("defineConfig", function () { "resolve": "@medusajs/medusa/sales-channel", }, "stock_location": { - "resolve": "@medusajs/medusa/stock-location-next", + "resolve": "@medusajs/medusa/stock-location", }, "store": { "resolve": "@medusajs/medusa/store", @@ -629,7 +629,7 @@ describe("defineConfig", function () { "providers": [ { "id": "emailpass", - "resolve": "@medusajs/auth-emailpass", + "resolve": "@medusajs/medusa/auth-emailpass", }, ], }, @@ -655,7 +655,7 @@ describe("defineConfig", function () { "providers": [ { "id": "local", - "resolve": "@medusajs/file-local-next", + "resolve": "@medusajs/medusa/file-local", }, ], }, @@ -666,14 +666,14 @@ describe("defineConfig", function () { "providers": [ { "id": "manual", - "resolve": "@medusajs/fulfillment-manual", + "resolve": "@medusajs/medusa/fulfillment-manual", }, ], }, "resolve": "@medusajs/medusa/fulfillment", }, "inventory": { - "resolve": "@medusajs/medusa/inventory-next", + "resolve": "@medusajs/medusa/inventory", }, "locking": { "resolve": "@medusajs/medusa/locking", @@ -689,7 +689,7 @@ describe("defineConfig", function () { ], "name": "Local Notification Provider", }, - "resolve": "@medusajs/notification-local", + "resolve": "@medusajs/medusa/notification-local", }, ], }, @@ -717,7 +717,7 @@ describe("defineConfig", function () { "resolve": "@medusajs/medusa/sales-channel", }, "stock_location": { - "resolve": "@medusajs/medusa/stock-location-next", + "resolve": "@medusajs/medusa/stock-location", }, "store": { "resolve": "@medusajs/medusa/store", @@ -778,7 +778,7 @@ describe("defineConfig", function () { "providers": [ { "id": "emailpass", - "resolve": "@medusajs/auth-emailpass", + "resolve": "@medusajs/medusa/auth-emailpass", }, ], }, @@ -801,7 +801,7 @@ describe("defineConfig", function () { "providers": [ { "id": "local", - "resolve": "@medusajs/file-local-next", + "resolve": "@medusajs/medusa/file-local", }, ], }, @@ -812,14 +812,14 @@ describe("defineConfig", function () { "providers": [ { "id": "manual", - "resolve": "@medusajs/fulfillment-manual", + "resolve": "@medusajs/medusa/fulfillment-manual", }, ], }, "resolve": "@medusajs/medusa/fulfillment", }, "inventory": { - "resolve": "@medusajs/medusa/inventory-next", + "resolve": "@medusajs/medusa/inventory", }, "locking": { "resolve": "@medusajs/medusa/locking", @@ -835,7 +835,7 @@ describe("defineConfig", function () { ], "name": "Local Notification Provider", }, - "resolve": "@medusajs/notification-local", + "resolve": "@medusajs/medusa/notification-local", }, ], }, @@ -863,7 +863,7 @@ describe("defineConfig", function () { "resolve": "@medusajs/medusa/sales-channel", }, "stock_location": { - "resolve": "@medusajs/medusa/stock-location-next", + "resolve": "@medusajs/medusa/stock-location", }, "store": { "resolve": "@medusajs/medusa/store", diff --git a/packages/core/utils/src/common/define-config.ts b/packages/core/utils/src/common/define-config.ts index ae962cc674..e9ee521052 100644 --- a/packages/core/utils/src/common/define-config.ts +++ b/packages/core/utils/src/common/define-config.ts @@ -154,7 +154,7 @@ function resolveModules( options: { providers: [ { - resolve: "@medusajs/auth-emailpass", + resolve: "@medusajs/medusa/auth-emailpass", id: "emailpass", }, ], @@ -171,7 +171,7 @@ function resolveModules( options: { providers: [ { - resolve: "@medusajs/file-local-next", + resolve: "@medusajs/medusa/file-local", id: "local", }, ], @@ -182,7 +182,7 @@ function resolveModules( options: { providers: [ { - resolve: "@medusajs/fulfillment-manual", + resolve: "@medusajs/medusa/fulfillment-manual", id: "manual", }, ], @@ -193,7 +193,7 @@ function resolveModules( options: { providers: [ { - resolve: "@medusajs/notification-local", + resolve: "@medusajs/medusa/notification-local", id: "local", options: { name: "Local Notification Provider", diff --git a/packages/core/utils/src/modules-sdk/definition.ts b/packages/core/utils/src/modules-sdk/definition.ts index 7582f00f45..300f9e0009 100644 --- a/packages/core/utils/src/modules-sdk/definition.ts +++ b/packages/core/utils/src/modules-sdk/definition.ts @@ -33,7 +33,7 @@ export const MODULE_PACKAGE_NAMES = { [Modules.CART]: "@medusajs/medusa/cart", [Modules.CUSTOMER]: "@medusajs/medusa/customer", [Modules.EVENT_BUS]: "@medusajs/medusa/event-bus-local", - [Modules.INVENTORY]: "@medusajs/medusa/inventory-next", // TODO: To be replaced when current `@medusajs/inventory` is deprecated + [Modules.INVENTORY]: "@medusajs/medusa/inventory", [Modules.LINK]: "@medusajs/medusa/link-modules", [Modules.PAYMENT]: "@medusajs/medusa/payment", [Modules.PRICING]: "@medusajs/medusa/pricing", @@ -41,7 +41,7 @@ export const MODULE_PACKAGE_NAMES = { [Modules.PROMOTION]: "@medusajs/medusa/promotion", [Modules.SALES_CHANNEL]: "@medusajs/medusa/sales-channel", [Modules.FULFILLMENT]: "@medusajs/medusa/fulfillment", - [Modules.STOCK_LOCATION]: "@medusajs/medusa/stock-location-next", // TODO: To be replaced when current `@medusajs/stock-location` is deprecated + [Modules.STOCK_LOCATION]: "@medusajs/medusa/stock-location", [Modules.TAX]: "@medusajs/medusa/tax", [Modules.USER]: "@medusajs/medusa/user", [Modules.WORKFLOW_ENGINE]: "@medusajs/medusa/workflow-engine-inmemory", diff --git a/packages/medusa-telemetry/package.json b/packages/medusa-telemetry/package.json index 9de4b89d3a..2089fec9dc 100644 --- a/packages/medusa-telemetry/package.json +++ b/packages/medusa-telemetry/package.json @@ -1,5 +1,5 @@ { - "name": "medusa-telemetry", + "name": "@medusajs/telemetry", "version": "0.0.17", "description": "Telemetry for Medusa", "main": "dist/index.js", diff --git a/packages/medusa-test-utils/package.json b/packages/medusa-test-utils/package.json index 8a4e61a340..db5889babc 100644 --- a/packages/medusa-test-utils/package.json +++ b/packages/medusa-test-utils/package.json @@ -1,5 +1,5 @@ { - "name": "medusa-test-utils", + "name": "@medusajs/test-utils", "version": "1.1.44", "description": "Test utils for Medusa", "main": "dist/index.js", diff --git a/packages/medusa/package.json b/packages/medusa/package.json index 1d611aa7f1..660a6d01e2 100644 --- a/packages/medusa/package.json +++ b/packages/medusa/package.json @@ -76,12 +76,12 @@ "@medusajs/event-bus-local": "^1.9.8", "@medusajs/event-bus-redis": "^1.8.13", "@medusajs/file": "^0.0.1", - "@medusajs/file-local-next": "^0.0.2", + "@medusajs/file-local": "^0.0.2", "@medusajs/file-s3": "^0.0.2", "@medusajs/fulfillment": "^0.1.2", "@medusajs/fulfillment-manual": "^0.0.2", "@medusajs/index": "^0.0.1", - "@medusajs/inventory-next": "^0.0.3", + "@medusajs/inventory": "^0.0.3", "@medusajs/link-modules": "^0.2.11", "@medusajs/locking": "^0.0.1", "@medusajs/locking-redis": "^0.0.1", @@ -96,9 +96,10 @@ "@medusajs/promotion": "^0.0.4", "@medusajs/region": "^0.1.1", "@medusajs/sales-channel": "^0.1.1", - "@medusajs/stock-location-next": "^0.0.3", + "@medusajs/stock-location": "^0.0.3", "@medusajs/store": "^0.1.1", "@medusajs/tax": "^0.1.1", + "@medusajs/telemetry": "^0.0.17", "@medusajs/user": "^0.0.3", "@medusajs/workflow-engine-inmemory": "^0.0.4", "@medusajs/workflow-engine-redis": "^0.0.4", @@ -113,7 +114,6 @@ "fs-exists-cached": "^1.0.0", "jsonwebtoken": "^9.0.2", "lodash": "^4.17.21", - "medusa-telemetry": "^0.0.17", "multer": "^1.4.5-lts.1", "node-schedule": "^2.1.1", "qs": "^6.11.2", diff --git a/packages/medusa/src/commands/develop.ts b/packages/medusa/src/commands/develop.ts index 353f8a4621..6cad7bf5ee 100644 --- a/packages/medusa/src/commands/develop.ts +++ b/packages/medusa/src/commands/develop.ts @@ -1,7 +1,7 @@ import boxen from "boxen" import { ChildProcess, execSync, fork } from "child_process" import chokidar, { FSWatcher } from "chokidar" -import { Store } from "medusa-telemetry" +import { Store } from "@medusajs/telemetry" import { EOL } from "os" import path from "path" diff --git a/packages/medusa/src/commands/start.ts b/packages/medusa/src/commands/start.ts index dc1fec9b50..662064d9fd 100644 --- a/packages/medusa/src/commands/start.ts +++ b/packages/medusa/src/commands/start.ts @@ -3,7 +3,7 @@ import path from "path" import http from "http" import express from "express" import cluster from "cluster" -import { track } from "medusa-telemetry" +import { track } from "@medusajs/telemetry" import { scheduleJob } from "node-schedule" import { diff --git a/packages/medusa/src/commands/user.ts b/packages/medusa/src/commands/user.ts index 0d5002bc6a..f0e38c724e 100644 --- a/packages/medusa/src/commands/user.ts +++ b/packages/medusa/src/commands/user.ts @@ -1,7 +1,7 @@ import { logger } from "@medusajs/framework/logger" import { Modules } from "@medusajs/framework/utils" import express from "express" -import { track } from "medusa-telemetry" +import { track } from "@medusajs/telemetry" import loaders from "../loaders" export default async function ({ diff --git a/packages/medusa/src/modules/file-local-next.ts b/packages/medusa/src/modules/file-local-next.ts deleted file mode 100644 index 92aa117c5d..0000000000 --- a/packages/medusa/src/modules/file-local-next.ts +++ /dev/null @@ -1,6 +0,0 @@ -import LocalFileProvider from "@medusajs/file-local-next" - -export * from "@medusajs/file-local-next" - -export default LocalFileProvider -export const discoveryPath = require.resolve("@medusajs/file-local-next") diff --git a/packages/medusa/src/modules/file-local.ts b/packages/medusa/src/modules/file-local.ts new file mode 100644 index 0000000000..2e29428edd --- /dev/null +++ b/packages/medusa/src/modules/file-local.ts @@ -0,0 +1,6 @@ +import LocalFileProvider from "@medusajs/file-local" + +export * from "@medusajs/file-local" + +export default LocalFileProvider +export const discoveryPath = require.resolve("@medusajs/file-local") diff --git a/packages/medusa/src/modules/inventory-next.ts b/packages/medusa/src/modules/inventory-next.ts deleted file mode 100644 index 88ca37fb3b..0000000000 --- a/packages/medusa/src/modules/inventory-next.ts +++ /dev/null @@ -1,6 +0,0 @@ -import InventoryModule from "@medusajs/inventory-next" - -export * from "@medusajs/inventory-next" - -export default InventoryModule -export const discoveryPath = require.resolve("@medusajs/inventory-next") diff --git a/packages/medusa/src/modules/inventory.ts b/packages/medusa/src/modules/inventory.ts new file mode 100644 index 0000000000..544aa6cb0e --- /dev/null +++ b/packages/medusa/src/modules/inventory.ts @@ -0,0 +1,6 @@ +import InventoryModule from "@medusajs/inventory" + +export * from "@medusajs/inventory" + +export default InventoryModule +export const discoveryPath = require.resolve("@medusajs/inventory") diff --git a/packages/medusa/src/modules/stock-location-next.ts b/packages/medusa/src/modules/stock-location-next.ts deleted file mode 100644 index 874c0862f8..0000000000 --- a/packages/medusa/src/modules/stock-location-next.ts +++ /dev/null @@ -1,6 +0,0 @@ -import StockLocationModule from "@medusajs/stock-location-next" - -export * from "@medusajs/stock-location-next" - -export default StockLocationModule -export const discoveryPath = require.resolve("@medusajs/stock-location-next") diff --git a/packages/medusa/src/modules/stock-location.ts b/packages/medusa/src/modules/stock-location.ts new file mode 100644 index 0000000000..7f121e876c --- /dev/null +++ b/packages/medusa/src/modules/stock-location.ts @@ -0,0 +1,6 @@ +import StockLocationModule from "@medusajs/stock-location" + +export * from "@medusajs/stock-location" + +export default StockLocationModule +export const discoveryPath = require.resolve("@medusajs/stock-location") diff --git a/packages/modules/api-key/integration-tests/__tests__/api-key-module-service.spec.ts b/packages/modules/api-key/integration-tests/__tests__/api-key-module-service.spec.ts index dd5a9ff671..802d5e5ef4 100644 --- a/packages/modules/api-key/integration-tests/__tests__/api-key-module-service.spec.ts +++ b/packages/modules/api-key/integration-tests/__tests__/api-key-module-service.spec.ts @@ -2,7 +2,7 @@ import { IApiKeyModuleService } from "@medusajs/framework/types" import { ApiKeyType, Module, Modules } from "@medusajs/framework/utils" import { ApiKeyModuleService } from "@services" import crypto from "crypto" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { createPublishableKeyFixture, createSecretKeyFixture, diff --git a/packages/modules/api-key/package.json b/packages/modules/api-key/package.json index 60ec301a32..d1b5758a61 100644 --- a/packages/modules/api-key/package.json +++ b/packages/modules/api-key/package.json @@ -38,11 +38,11 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/auth/integration-tests/__tests__/auth-module-service/auth-identity.spec.ts b/packages/modules/auth/integration-tests/__tests__/auth-module-service/auth-identity.spec.ts index 6541effd1a..bb0f5db0ee 100644 --- a/packages/modules/auth/integration-tests/__tests__/auth-module-service/auth-identity.spec.ts +++ b/packages/modules/auth/integration-tests/__tests__/auth-module-service/auth-identity.spec.ts @@ -1,6 +1,6 @@ import { IAuthModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { createAuthIdentities } from "../../__fixtures__/auth-identity" jest.setTimeout(30000) diff --git a/packages/modules/auth/integration-tests/__tests__/auth-module-service/index.spec.ts b/packages/modules/auth/integration-tests/__tests__/auth-module-service/index.spec.ts index 3f8d30dcda..26f4759ace 100644 --- a/packages/modules/auth/integration-tests/__tests__/auth-module-service/index.spec.ts +++ b/packages/modules/auth/integration-tests/__tests__/auth-module-service/index.spec.ts @@ -1,7 +1,7 @@ import { IAuthModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { AuthModuleService } from "@services" -import { moduleIntegrationTestRunner, SuiteOptions } from "medusa-test-utils" +import { moduleIntegrationTestRunner, SuiteOptions } from "@medusajs/test-utils" import { resolve } from "path" let moduleOptions = { diff --git a/packages/modules/auth/package.json b/packages/modules/auth/package.json index 9bf5a589d3..8b113226df 100644 --- a/packages/modules/auth/package.json +++ b/packages/modules/auth/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.42", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/cart/integration-tests/__tests__/services/cart-module/index.spec.ts b/packages/modules/cart/integration-tests/__tests__/services/cart-module/index.spec.ts index fa5c2510c4..5c6f58ad31 100644 --- a/packages/modules/cart/integration-tests/__tests__/services/cart-module/index.spec.ts +++ b/packages/modules/cart/integration-tests/__tests__/services/cart-module/index.spec.ts @@ -2,7 +2,7 @@ import { ICartModuleService } from "@medusajs/framework/types" import { BigNumber, Module, Modules } from "@medusajs/framework/utils" import { CheckConstraintViolationException } from "@mikro-orm/core" import { CartModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(50000) diff --git a/packages/modules/cart/package.json b/packages/modules/cart/package.json index da3c72cdc0..cf1a75d95c 100644 --- a/packages/modules/cart/package.json +++ b/packages/modules/cart/package.json @@ -37,6 +37,7 @@ "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear" }, "devDependencies": { + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -44,7 +45,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts b/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts index 7f255f7ad5..12f51c4247 100644 --- a/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts +++ b/packages/modules/currency/integration-tests/__tests__/currency-module-service.spec.ts @@ -1,7 +1,7 @@ import { ICurrencyModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { CurrencyModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/currency/package.json b/packages/modules/currency/package.json index 2c88bb3ba3..85a97392c9 100644 --- a/packages/modules/currency/package.json +++ b/packages/modules/currency/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/customer/integration-tests/__tests__/services/customer-module/index.spec.ts b/packages/modules/customer/integration-tests/__tests__/services/customer-module/index.spec.ts index 83c94b1c53..275b64238b 100644 --- a/packages/modules/customer/integration-tests/__tests__/services/customer-module/index.spec.ts +++ b/packages/modules/customer/integration-tests/__tests__/services/customer-module/index.spec.ts @@ -1,7 +1,7 @@ import { ICustomerModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { CustomerModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/customer/package.json b/packages/modules/customer/package.json index 32b0cd5f40..de20cc10db 100644 --- a/packages/modules/customer/package.json +++ b/packages/modules/customer/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/file/integration-tests/__tests__/module.spec.ts b/packages/modules/file/integration-tests/__tests__/module.spec.ts index dc3f34414f..de97bcf7fb 100644 --- a/packages/modules/file/integration-tests/__tests__/module.spec.ts +++ b/packages/modules/file/integration-tests/__tests__/module.spec.ts @@ -1,5 +1,5 @@ import { resolve } from "path" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { IFileModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { FileModuleService } from "@services" diff --git a/packages/modules/file/package.json b/packages/modules/file/package.json index ed6a812c16..6f03d5855f 100644 --- a/packages/modules/file/package.json +++ b/packages/modules/file/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.43", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment-set.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment-set.spec.ts index a358c924a4..c1cc4154d9 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment-set.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment-set.spec.ts @@ -13,7 +13,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { buildExpectedEventMessageShape } from "../../__fixtures__" jest.setTimeout(100000) diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment.spec.ts index 13ee0e2e42..249023e6e9 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/fulfillment.spec.ts @@ -6,7 +6,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { buildExpectedEventMessageShape, generateCreateFulfillmentData, diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/geo-zone.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/geo-zone.spec.ts index a847ddea66..630a89e06c 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/geo-zone.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/geo-zone.spec.ts @@ -11,7 +11,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { buildExpectedEventMessageShape } from "../../__fixtures__" jest.setTimeout(100000) diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/index.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/index.spec.ts index fc801f8286..7834566d00 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/index.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/index.spec.ts @@ -9,7 +9,7 @@ import { initModules, moduleIntegrationTestRunner, SuiteOptions, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { resolve } from "path" import { createFullDataStructure } from "../../__fixtures__" import { FulfillmentProviderServiceFixtures } from "../../__fixtures__/providers" diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/service-zone.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/service-zone.spec.ts index 385a3b7795..1ea7beafbf 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/service-zone.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/service-zone.spec.ts @@ -12,7 +12,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { buildExpectedEventMessageShape } from "../../__fixtures__" jest.setTimeout(100000) diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-option.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-option.spec.ts index f4a5c3cc57..72f73687f5 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-option.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-option.spec.ts @@ -12,7 +12,7 @@ import { FulfillmentProviderService } from "@services" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { resolve } from "path" import { buildExpectedEventMessageShape, diff --git a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-profile.spec.ts b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-profile.spec.ts index d6372fd5f4..e7d4a2eb2b 100644 --- a/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-profile.spec.ts +++ b/packages/modules/fulfillment/integration-tests/__tests__/fulfillment-module-service/shipping-profile.spec.ts @@ -5,7 +5,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { buildExpectedEventMessageShape, generateCreateShippingOptionsData, diff --git a/packages/modules/fulfillment/package.json b/packages/modules/fulfillment/package.json index 321859bec1..e0d070c7b9 100644 --- a/packages/modules/fulfillment/package.json +++ b/packages/modules/fulfillment/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/index/integration-tests/__tests__/index-engine-module.spec.ts b/packages/modules/index/integration-tests/__tests__/index-engine-module.spec.ts index 31cc6e7919..7ae1190cd2 100644 --- a/packages/modules/index/integration-tests/__tests__/index-engine-module.spec.ts +++ b/packages/modules/index/integration-tests/__tests__/index-engine-module.spec.ts @@ -14,7 +14,7 @@ import { import { EntityManager } from "@mikro-orm/postgresql" import { IndexData, IndexRelation } from "@models" import { asValue } from "awilix" -import { initDb, TestDatabaseUtils } from "medusa-test-utils" +import { initDb, TestDatabaseUtils } from "@medusajs/test-utils" import * as path from "path" import { EventBusServiceMock } from "../__fixtures__" import { dbName } from "../__fixtures__/medusa-config" diff --git a/packages/modules/index/integration-tests/__tests__/query-builder.spec.ts b/packages/modules/index/integration-tests/__tests__/query-builder.spec.ts index b99e418062..6aea157b00 100644 --- a/packages/modules/index/integration-tests/__tests__/query-builder.spec.ts +++ b/packages/modules/index/integration-tests/__tests__/query-builder.spec.ts @@ -14,7 +14,7 @@ import { import { EntityManager } from "@mikro-orm/postgresql" import { IndexData, IndexRelation } from "@models" import { asValue } from "awilix" -import { initDb, TestDatabaseUtils } from "medusa-test-utils" +import { initDb, TestDatabaseUtils } from "@medusajs/test-utils" import path from "path" import { EventBusServiceMock } from "../__fixtures__" import { dbName } from "../__fixtures__/medusa-config" diff --git a/packages/modules/index/package.json b/packages/modules/index/package.json index 8c67e0d955..ba880b9449 100644 --- a/packages/modules/index/package.json +++ b/packages/modules/index/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/knex": "5.9.7", @@ -46,7 +47,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/inventory-next/.gitignore b/packages/modules/inventory/.gitignore similarity index 100% rename from packages/modules/inventory-next/.gitignore rename to packages/modules/inventory/.gitignore diff --git a/packages/modules/inventory-next/CHANGELOG.md b/packages/modules/inventory/CHANGELOG.md similarity index 100% rename from packages/modules/inventory-next/CHANGELOG.md rename to packages/modules/inventory/CHANGELOG.md diff --git a/packages/modules/inventory-next/integration-tests/__tests__/inventory-module-service.spec.ts b/packages/modules/inventory/integration-tests/__tests__/inventory-module-service.spec.ts similarity index 99% rename from packages/modules/inventory-next/integration-tests/__tests__/inventory-module-service.spec.ts rename to packages/modules/inventory/integration-tests/__tests__/inventory-module-service.spec.ts index 424b82d7a3..5034380a39 100644 --- a/packages/modules/inventory-next/integration-tests/__tests__/inventory-module-service.spec.ts +++ b/packages/modules/inventory/integration-tests/__tests__/inventory-module-service.spec.ts @@ -1,6 +1,6 @@ import { IInventoryService, InventoryItemDTO } from "@medusajs/framework/types" import { BigNumber, Module, Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { InventoryModuleService } from "../../src/services" jest.setTimeout(100000) diff --git a/packages/modules/inventory-next/jest.config.js b/packages/modules/inventory/jest.config.js similarity index 100% rename from packages/modules/inventory-next/jest.config.js rename to packages/modules/inventory/jest.config.js diff --git a/packages/modules/inventory-next/mikro-orm.config.dev.ts b/packages/modules/inventory/mikro-orm.config.dev.ts similarity index 100% rename from packages/modules/inventory-next/mikro-orm.config.dev.ts rename to packages/modules/inventory/mikro-orm.config.dev.ts diff --git a/packages/modules/inventory-next/package.json b/packages/modules/inventory/package.json similarity index 94% rename from packages/modules/inventory-next/package.json rename to packages/modules/inventory/package.json index 3c93236eec..e430406511 100644 --- a/packages/modules/inventory-next/package.json +++ b/packages/modules/inventory/package.json @@ -1,12 +1,12 @@ { - "name": "@medusajs/inventory-next", + "name": "@medusajs/inventory", "version": "0.0.3", "description": "Inventory Module for Medusa", "main": "dist/index.js", "repository": { "type": "git", "url": "https://github.com/medusajs/medusa", - "directory": "packages/inventory-next" + "directory": "packages/inventory" }, "publishConfig": { "access": "public" @@ -24,6 +24,7 @@ "license": "MIT", "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -31,7 +32,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.43", "rimraf": "^5.0.1", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/inventory-next/src/index.ts b/packages/modules/inventory/src/index.ts similarity index 100% rename from packages/modules/inventory-next/src/index.ts rename to packages/modules/inventory/src/index.ts diff --git a/packages/modules/inventory-next/src/joiner-config.ts b/packages/modules/inventory/src/joiner-config.ts similarity index 100% rename from packages/modules/inventory-next/src/joiner-config.ts rename to packages/modules/inventory/src/joiner-config.ts diff --git a/packages/modules/inventory-next/src/migrations/.snapshot-medusa-inventory.json b/packages/modules/inventory/src/migrations/.snapshot-medusa-inventory.json similarity index 100% rename from packages/modules/inventory-next/src/migrations/.snapshot-medusa-inventory.json rename to packages/modules/inventory/src/migrations/.snapshot-medusa-inventory.json diff --git a/packages/modules/inventory-next/src/migrations/Migration20240307132720.ts b/packages/modules/inventory/src/migrations/Migration20240307132720.ts similarity index 100% rename from packages/modules/inventory-next/src/migrations/Migration20240307132720.ts rename to packages/modules/inventory/src/migrations/Migration20240307132720.ts diff --git a/packages/modules/inventory-next/src/migrations/Migration20240719123015.ts b/packages/modules/inventory/src/migrations/Migration20240719123015.ts similarity index 100% rename from packages/modules/inventory-next/src/migrations/Migration20240719123015.ts rename to packages/modules/inventory/src/migrations/Migration20240719123015.ts diff --git a/packages/modules/inventory-next/src/models/index.ts b/packages/modules/inventory/src/models/index.ts similarity index 100% rename from packages/modules/inventory-next/src/models/index.ts rename to packages/modules/inventory/src/models/index.ts diff --git a/packages/modules/inventory-next/src/models/inventory-item.ts b/packages/modules/inventory/src/models/inventory-item.ts similarity index 100% rename from packages/modules/inventory-next/src/models/inventory-item.ts rename to packages/modules/inventory/src/models/inventory-item.ts diff --git a/packages/modules/inventory-next/src/models/inventory-level.ts b/packages/modules/inventory/src/models/inventory-level.ts similarity index 100% rename from packages/modules/inventory-next/src/models/inventory-level.ts rename to packages/modules/inventory/src/models/inventory-level.ts diff --git a/packages/modules/inventory-next/src/models/reservation-item.ts b/packages/modules/inventory/src/models/reservation-item.ts similarity index 100% rename from packages/modules/inventory-next/src/models/reservation-item.ts rename to packages/modules/inventory/src/models/reservation-item.ts diff --git a/packages/modules/inventory-next/src/repositories/index.ts b/packages/modules/inventory/src/repositories/index.ts similarity index 100% rename from packages/modules/inventory-next/src/repositories/index.ts rename to packages/modules/inventory/src/repositories/index.ts diff --git a/packages/modules/inventory-next/src/repositories/inventory-level.ts b/packages/modules/inventory/src/repositories/inventory-level.ts similarity index 100% rename from packages/modules/inventory-next/src/repositories/inventory-level.ts rename to packages/modules/inventory/src/repositories/inventory-level.ts diff --git a/packages/modules/inventory-next/src/schema/index.ts b/packages/modules/inventory/src/schema/index.ts similarity index 100% rename from packages/modules/inventory-next/src/schema/index.ts rename to packages/modules/inventory/src/schema/index.ts diff --git a/packages/modules/inventory-next/src/services/__tests__/noop.ts b/packages/modules/inventory/src/services/__tests__/noop.ts similarity index 100% rename from packages/modules/inventory-next/src/services/__tests__/noop.ts rename to packages/modules/inventory/src/services/__tests__/noop.ts diff --git a/packages/modules/inventory-next/src/services/index.ts b/packages/modules/inventory/src/services/index.ts similarity index 100% rename from packages/modules/inventory-next/src/services/index.ts rename to packages/modules/inventory/src/services/index.ts diff --git a/packages/modules/inventory-next/src/services/inventory-level.ts b/packages/modules/inventory/src/services/inventory-level.ts similarity index 100% rename from packages/modules/inventory-next/src/services/inventory-level.ts rename to packages/modules/inventory/src/services/inventory-level.ts diff --git a/packages/modules/inventory-next/src/services/inventory-module.ts b/packages/modules/inventory/src/services/inventory-module.ts similarity index 100% rename from packages/modules/inventory-next/src/services/inventory-module.ts rename to packages/modules/inventory/src/services/inventory-module.ts diff --git a/packages/modules/inventory-next/tsconfig.json b/packages/modules/inventory/tsconfig.json similarity index 100% rename from packages/modules/inventory-next/tsconfig.json rename to packages/modules/inventory/tsconfig.json diff --git a/packages/modules/link-modules/integration-tests/__tests__/migrations.spec.ts b/packages/modules/link-modules/integration-tests/__tests__/migrations.spec.ts index 29d4464be7..15faf8cc89 100644 --- a/packages/modules/link-modules/integration-tests/__tests__/migrations.spec.ts +++ b/packages/modules/link-modules/integration-tests/__tests__/migrations.spec.ts @@ -1,7 +1,7 @@ import { MedusaModule } from "@medusajs/framework/modules-sdk" import { ILinkModule, ModuleJoinerConfig } from "@medusajs/framework/types" import { defineLink, isObject, Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { MigrationsExecutionPlanner } from "../../src" import { Car, diff --git a/packages/modules/link-modules/package.json b/packages/modules/link-modules/package.json index 38b71a2dfa..f1cf4ff540 100644 --- a/packages/modules/link-modules/package.json +++ b/packages/modules/link-modules/package.json @@ -34,6 +34,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", "@mikro-orm/postgresql": "5.9.7", @@ -41,7 +42,6 @@ "@swc/jest": "^0.2.36", "cross-env": "^5.2.1", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^5.0.1", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/locking/integration-tests/__tests__/index.spec.ts b/packages/modules/locking/integration-tests/__tests__/index.spec.ts index a264d95ac0..270e171e66 100644 --- a/packages/modules/locking/integration-tests/__tests__/index.spec.ts +++ b/packages/modules/locking/integration-tests/__tests__/index.spec.ts @@ -1,6 +1,6 @@ import { ILockingModule } from "@medusajs/framework/types" import { Modules, promiseAll } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { setTimeout } from "node:timers/promises" jest.setTimeout(10000) diff --git a/packages/modules/locking/package.json b/packages/modules/locking/package.json index 15e20f26cb..f7fd7bd74e 100644 --- a/packages/modules/locking/package.json +++ b/packages/modules/locking/package.json @@ -34,6 +34,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -41,7 +42,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/notification/integration-tests/__tests__/notification-module-service/index.spec.ts b/packages/modules/notification/integration-tests/__tests__/notification-module-service/index.spec.ts index 985140eda7..d459436a2d 100644 --- a/packages/modules/notification/integration-tests/__tests__/notification-module-service/index.spec.ts +++ b/packages/modules/notification/integration-tests/__tests__/notification-module-service/index.spec.ts @@ -11,7 +11,7 @@ import { NotificationModuleService } from "@services" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { resolve } from "path" let moduleOptions = { diff --git a/packages/modules/notification/package.json b/packages/modules/notification/package.json index 975f67823c..d64f77e913 100644 --- a/packages/modules/notification/package.json +++ b/packages/modules/notification/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/order/integration-tests/__tests__/create-order.ts b/packages/modules/order/integration-tests/__tests__/create-order.ts index a4a67b5974..1d268b16b4 100644 --- a/packages/modules/order/integration-tests/__tests__/create-order.ts +++ b/packages/modules/order/integration-tests/__tests__/create-order.ts @@ -1,6 +1,6 @@ import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/order/integration-tests/__tests__/index.spec.ts b/packages/modules/order/integration-tests/__tests__/index.spec.ts index 9eefcdc3fd..06af48f5ef 100644 --- a/packages/modules/order/integration-tests/__tests__/index.spec.ts +++ b/packages/modules/order/integration-tests/__tests__/index.spec.ts @@ -1,7 +1,7 @@ import { IOrderModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { OrderModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" moduleIntegrationTestRunner({ moduleName: Modules.ORDER, diff --git a/packages/modules/order/integration-tests/__tests__/order-claim.ts b/packages/modules/order/integration-tests/__tests__/order-claim.ts index 058a95c0f6..8a59866636 100644 --- a/packages/modules/order/integration-tests/__tests__/order-claim.ts +++ b/packages/modules/order/integration-tests/__tests__/order-claim.ts @@ -1,6 +1,6 @@ import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types" import { ClaimType, Modules } from "@medusajs/framework/utils" -import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils" +import { SuiteOptions, moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/order/integration-tests/__tests__/order-edit.ts b/packages/modules/order/integration-tests/__tests__/order-edit.ts index 4fc0ba90bc..51fa21447b 100644 --- a/packages/modules/order/integration-tests/__tests__/order-edit.ts +++ b/packages/modules/order/integration-tests/__tests__/order-edit.ts @@ -5,7 +5,7 @@ import { IOrderModuleService, } from "@medusajs/framework/types" import { BigNumber, ChangeActionType, Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/order/integration-tests/__tests__/order-exchange.ts b/packages/modules/order/integration-tests/__tests__/order-exchange.ts index 327f0a3bda..da907a02c5 100644 --- a/packages/modules/order/integration-tests/__tests__/order-exchange.ts +++ b/packages/modules/order/integration-tests/__tests__/order-exchange.ts @@ -1,6 +1,6 @@ import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils" +import { SuiteOptions, moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/order/integration-tests/__tests__/order-items-shipping.spec.ts b/packages/modules/order/integration-tests/__tests__/order-items-shipping.spec.ts index 0a5c2adb02..6f0c33ed41 100644 --- a/packages/modules/order/integration-tests/__tests__/order-items-shipping.spec.ts +++ b/packages/modules/order/integration-tests/__tests__/order-items-shipping.spec.ts @@ -3,7 +3,7 @@ import { IOrderModuleService, } from "@medusajs/framework/types" import { Modules, OrderStatus } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/order/integration-tests/__tests__/order-return.ts b/packages/modules/order/integration-tests/__tests__/order-return.ts index 1c00d8ff2c..4a70061694 100644 --- a/packages/modules/order/integration-tests/__tests__/order-return.ts +++ b/packages/modules/order/integration-tests/__tests__/order-return.ts @@ -1,6 +1,6 @@ import { CreateOrderDTO, IOrderModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(1000000) diff --git a/packages/modules/order/integration-tests/__tests__/returns.ts b/packages/modules/order/integration-tests/__tests__/returns.ts index b0b89b0b52..9aa3904876 100644 --- a/packages/modules/order/integration-tests/__tests__/returns.ts +++ b/packages/modules/order/integration-tests/__tests__/returns.ts @@ -1,6 +1,6 @@ import { IOrderModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(100000) diff --git a/packages/modules/order/package.json b/packages/modules/order/package.json index 6b1c2e7626..0169b8f8d9 100644 --- a/packages/modules/order/package.json +++ b/packages/modules/order/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/payment/integration-tests/__tests__/loaders/providers.spec.ts b/packages/modules/payment/integration-tests/__tests__/loaders/providers.spec.ts index eb88ee8c1a..1f7b4b47b5 100644 --- a/packages/modules/payment/integration-tests/__tests__/loaders/providers.spec.ts +++ b/packages/modules/payment/integration-tests/__tests__/loaders/providers.spec.ts @@ -1,6 +1,6 @@ import { IPaymentModuleService } from "@medusajs/framework/types" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { Modules } from "@medusajs/framework/utils" jest.setTimeout(30000) diff --git a/packages/modules/payment/integration-tests/__tests__/services/payment-module/index.spec.ts b/packages/modules/payment/integration-tests/__tests__/services/payment-module/index.spec.ts index ef88599755..7a09a1cfab 100644 --- a/packages/modules/payment/integration-tests/__tests__/services/payment-module/index.spec.ts +++ b/packages/modules/payment/integration-tests/__tests__/services/payment-module/index.spec.ts @@ -1,7 +1,7 @@ import { IPaymentModuleService } from "@medusajs/framework/types" import { Module, Modules, promiseAll } from "@medusajs/framework/utils" import { PaymentModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { createPaymentCollections, createPayments, diff --git a/packages/modules/payment/package.json b/packages/modules/payment/package.json index 9d430c90c8..40e9bbef52 100644 --- a/packages/modules/payment/package.json +++ b/packages/modules/payment/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/calculate-price.spec.ts b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/calculate-price.spec.ts index 1bc2843d92..12958606f7 100644 --- a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/calculate-price.spec.ts +++ b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/calculate-price.spec.ts @@ -9,7 +9,7 @@ import { PriceListStatus, PriceListType, } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { seedPriceData } from "../../../__fixtures__/seed-price-data" jest.setTimeout(30000) diff --git a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/index.spec.ts b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/index.spec.ts index 9ebe25f9e3..cadd6071f7 100644 --- a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/index.spec.ts +++ b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/index.spec.ts @@ -1,7 +1,7 @@ import { IPricingModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { PricingModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" moduleIntegrationTestRunner({ moduleName: Modules.PRICING, diff --git a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list-rule.spec.ts b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list-rule.spec.ts index 470e9f74de..f142985eb6 100644 --- a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list-rule.spec.ts +++ b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list-rule.spec.ts @@ -1,6 +1,6 @@ import { IPricingModuleService } from "@medusajs/framework/types" import { SqlEntityManager } from "@mikro-orm/postgresql" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { createPriceLists } from "../../../__fixtures__/price-list" import { createPriceListRules } from "../../../__fixtures__/price-list-rules" import { Modules } from "@medusajs/framework/utils" diff --git a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts index 3e7192955e..378e9836a8 100644 --- a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts +++ b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-list.spec.ts @@ -8,7 +8,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { createPriceLists } from "../../../__fixtures__/price-list" import { createPriceSets } from "../../../__fixtures__/price-set" diff --git a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-rule.spec.ts b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-rule.spec.ts index 4a555273ba..73c7056e10 100644 --- a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-rule.spec.ts +++ b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-rule.spec.ts @@ -1,6 +1,6 @@ import { IPricingModuleService } from "@medusajs/framework/types" import { SqlEntityManager } from "@mikro-orm/postgresql" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { Price } from "../../../../src/models" import { createPrices } from "../../../__fixtures__/price" import { createPriceRules } from "../../../__fixtures__/price-rule" diff --git a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-set.spec.ts b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-set.spec.ts index 505e34dd88..9a2b193d2d 100644 --- a/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-set.spec.ts +++ b/packages/modules/pricing/integration-tests/__tests__/services/pricing-module/price-set.spec.ts @@ -11,7 +11,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { seedPriceData } from "../../../__fixtures__/seed-price-data" jest.setTimeout(30000) diff --git a/packages/modules/pricing/package.json b/packages/modules/pricing/package.json index 2de9221200..8949ab1874 100644 --- a/packages/modules/pricing/package.json +++ b/packages/modules/pricing/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/product/integration-tests/__tests__/product-category.ts b/packages/modules/product/integration-tests/__tests__/product-category.ts index a049f52026..77aafe8b14 100644 --- a/packages/modules/product/integration-tests/__tests__/product-category.ts +++ b/packages/modules/product/integration-tests/__tests__/product-category.ts @@ -1,6 +1,6 @@ import { ProductCategoryService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { eletronicsCategoriesData, productCategoriesData, diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/product-categories.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/product-categories.spec.ts index 20f04a917f..210a2c42f6 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/product-categories.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/product-categories.spec.ts @@ -10,7 +10,7 @@ import { Product, ProductCategory } from "@models" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { productCategoriesRankData } from "../../__fixtures__/product-category/data" jest.setTimeout(30000) diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/product-collections.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/product-collections.spec.ts index 2da9b772c0..2e4fa2bd62 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/product-collections.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/product-collections.spec.ts @@ -10,7 +10,7 @@ import { Product, ProductCollection } from "@models" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { createCollections } from "../../__fixtures__/product" jest.setTimeout(30000) diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/product-options.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/product-options.spec.ts index 8083e2d37e..cc3fe9baac 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/product-options.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/product-options.spec.ts @@ -1,7 +1,7 @@ import { IProductModuleService } from "@medusajs/framework/types" import { Modules, ProductStatus } from "@medusajs/framework/utils" import { Product, ProductOption } from "@models" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/product-tags.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/product-tags.spec.ts index b10ab87dd6..d197df4baa 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/product-tags.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/product-tags.spec.ts @@ -10,7 +10,7 @@ import { Product, ProductTag } from "@models" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/product-types.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/product-types.spec.ts index bd0645cda1..c33a501ea2 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/product-types.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/product-types.spec.ts @@ -1,6 +1,6 @@ import { IProductModuleService } from "@medusajs/framework/types" import { ProductType } from "@models" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { Modules } from "@medusajs/framework/utils" jest.setTimeout(30000) diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/product-variants.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/product-variants.spec.ts index 60f91ce0cd..5929b8f607 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/product-variants.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/product-variants.spec.ts @@ -17,7 +17,7 @@ import { import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/product/integration-tests/__tests__/product-module-service/products.spec.ts b/packages/modules/product/integration-tests/__tests__/product-module-service/products.spec.ts index 8045a7fde8..84c1427906 100644 --- a/packages/modules/product/integration-tests/__tests__/product-module-service/products.spec.ts +++ b/packages/modules/product/integration-tests/__tests__/product-module-service/products.spec.ts @@ -22,7 +22,7 @@ import { UpdateProductInput } from "@types" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" import { buildProductAndRelationsData, createCollections, diff --git a/packages/modules/product/integration-tests/__tests__/product.ts b/packages/modules/product/integration-tests/__tests__/product.ts index d7ac5e1064..d1e1b7b9fe 100644 --- a/packages/modules/product/integration-tests/__tests__/product.ts +++ b/packages/modules/product/integration-tests/__tests__/product.ts @@ -21,7 +21,7 @@ import { ProductModuleService, ProductService, } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { categoriesData, productsData, diff --git a/packages/modules/product/package.json b/packages/modules/product/package.json index 4325dc8f62..44b9a7437b 100644 --- a/packages/modules/product/package.json +++ b/packages/modules/product/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -46,7 +47,6 @@ "@swc/jest": "^0.2.36", "faker": "^5.5.3", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts index 9583bad3a1..76a452b188 100644 --- a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts +++ b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/campaign.spec.ts @@ -1,6 +1,6 @@ import { IPromotionModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { CampaignBudgetType } from "../../../../../../core/utils/src/promotion/index" import { createCampaigns } from "../../../__fixtures__/campaigns" import { createPromotions } from "../../../__fixtures__/promotion" diff --git a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/compute-actions.spec.ts b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/compute-actions.spec.ts index e4be54827c..63f57081d3 100644 --- a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/compute-actions.spec.ts +++ b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/compute-actions.spec.ts @@ -4,7 +4,7 @@ import { Modules, PromotionType, } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner, SuiteOptions } from "medusa-test-utils" +import { moduleIntegrationTestRunner, SuiteOptions } from "@medusajs/test-utils" import { createCampaigns } from "../../../__fixtures__/campaigns" import { createDefaultPromotion } from "../../../__fixtures__/promotion" diff --git a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts index 75231ad1b1..db76293409 100644 --- a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts +++ b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/promotion.spec.ts @@ -7,7 +7,7 @@ import { PromotionType, } from "@medusajs/framework/utils" import { PromotionModuleService } from "@services" -import { SuiteOptions, moduleIntegrationTestRunner } from "medusa-test-utils" +import { SuiteOptions, moduleIntegrationTestRunner } from "@medusajs/test-utils" import { createCampaigns } from "../../../__fixtures__/campaigns" import { createDefaultPromotion, diff --git a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/register-usage.spec.ts b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/register-usage.spec.ts index c4887115ce..2e2731e3bd 100644 --- a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/register-usage.spec.ts +++ b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/register-usage.spec.ts @@ -1,5 +1,5 @@ import { IPromotionModuleService } from "@medusajs/framework/types" -import { moduleIntegrationTestRunner, SuiteOptions } from "medusa-test-utils" +import { moduleIntegrationTestRunner, SuiteOptions } from "@medusajs/test-utils" import { createCampaigns } from "../../../__fixtures__/campaigns" import { createDefaultPromotion } from "../../../__fixtures__/promotion" import { Modules } from "@medusajs/framework/utils" diff --git a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/revert-usage.spec.ts b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/revert-usage.spec.ts index 6568b74c3a..f848d30297 100644 --- a/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/revert-usage.spec.ts +++ b/packages/modules/promotion/integration-tests/__tests__/services/promotion-module/revert-usage.spec.ts @@ -1,6 +1,6 @@ import { IPromotionModuleService } from "@medusajs/framework/types" import { Modules } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner, SuiteOptions } from "medusa-test-utils" +import { moduleIntegrationTestRunner, SuiteOptions } from "@medusajs/test-utils" import { createCampaigns } from "../../../__fixtures__/campaigns" import { createDefaultPromotion } from "../../../__fixtures__/promotion" diff --git a/packages/modules/promotion/package.json b/packages/modules/promotion/package.json index 992a0d4ebe..b25724f888 100644 --- a/packages/modules/promotion/package.json +++ b/packages/modules/promotion/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/providers/file-local/package.json b/packages/modules/providers/file-local/package.json index 273a40ed10..d40f81f38c 100644 --- a/packages/modules/providers/file-local/package.json +++ b/packages/modules/providers/file-local/package.json @@ -1,5 +1,5 @@ { - "name": "@medusajs/file-local-next", + "name": "@medusajs/file-local", "version": "0.0.2", "description": "Local filesystem file storage for Medusa", "main": "dist/index.js", diff --git a/packages/modules/providers/locking-redis/integration-tests/__tests__/index.spec.ts b/packages/modules/providers/locking-redis/integration-tests/__tests__/index.spec.ts index 960282039a..8881ccc571 100644 --- a/packages/modules/providers/locking-redis/integration-tests/__tests__/index.spec.ts +++ b/packages/modules/providers/locking-redis/integration-tests/__tests__/index.spec.ts @@ -1,6 +1,6 @@ import { ILockingModule } from "@medusajs/framework/types" import { Modules, promiseAll } from "@medusajs/framework/utils" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { setTimeout } from "node:timers/promises" jest.setTimeout(5000) diff --git a/packages/modules/region/integration-tests/__tests__/region-module.spec.ts b/packages/modules/region/integration-tests/__tests__/region-module.spec.ts index 49f34242d8..2c68af1ccb 100644 --- a/packages/modules/region/integration-tests/__tests__/region-module.spec.ts +++ b/packages/modules/region/integration-tests/__tests__/region-module.spec.ts @@ -1,7 +1,7 @@ import { IRegionModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { RegionModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/region/package.json b/packages/modules/region/package.json index 5c452a6de6..b72e1b7251 100644 --- a/packages/modules/region/package.json +++ b/packages/modules/region/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/sales-channel/integration-tests/__tests__/services/sales-channel-module.spec.ts b/packages/modules/sales-channel/integration-tests/__tests__/services/sales-channel-module.spec.ts index cac869feec..f03497647d 100644 --- a/packages/modules/sales-channel/integration-tests/__tests__/services/sales-channel-module.spec.ts +++ b/packages/modules/sales-channel/integration-tests/__tests__/services/sales-channel-module.spec.ts @@ -1,7 +1,7 @@ import { ISalesChannelModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { SalesChannelModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/sales-channel/package.json b/packages/modules/sales-channel/package.json index 2b06fcd520..9e1b3deb69 100644 --- a/packages/modules/sales-channel/package.json +++ b/packages/modules/sales-channel/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.42", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/stock-location-next/.gitignore b/packages/modules/stock-location/.gitignore similarity index 100% rename from packages/modules/stock-location-next/.gitignore rename to packages/modules/stock-location/.gitignore diff --git a/packages/modules/stock-location-next/CHANGELOG.md b/packages/modules/stock-location/CHANGELOG.md similarity index 100% rename from packages/modules/stock-location-next/CHANGELOG.md rename to packages/modules/stock-location/CHANGELOG.md diff --git a/packages/modules/stock-location-next/integration-tests/__tests__/stock-location-module-service.spec.ts b/packages/modules/stock-location/integration-tests/__tests__/stock-location-module-service.spec.ts similarity index 98% rename from packages/modules/stock-location-next/integration-tests/__tests__/stock-location-module-service.spec.ts rename to packages/modules/stock-location/integration-tests/__tests__/stock-location-module-service.spec.ts index 3f55111bcf..a3292c0169 100644 --- a/packages/modules/stock-location-next/integration-tests/__tests__/stock-location-module-service.spec.ts +++ b/packages/modules/stock-location/integration-tests/__tests__/stock-location-module-service.spec.ts @@ -1,4 +1,4 @@ -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { IStockLocationService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" diff --git a/packages/modules/stock-location-next/jest.config.js b/packages/modules/stock-location/jest.config.js similarity index 100% rename from packages/modules/stock-location-next/jest.config.js rename to packages/modules/stock-location/jest.config.js diff --git a/packages/modules/stock-location-next/mikro-orm.config.dev.ts b/packages/modules/stock-location/mikro-orm.config.dev.ts similarity index 100% rename from packages/modules/stock-location-next/mikro-orm.config.dev.ts rename to packages/modules/stock-location/mikro-orm.config.dev.ts diff --git a/packages/modules/stock-location-next/package.json b/packages/modules/stock-location/package.json similarity index 96% rename from packages/modules/stock-location-next/package.json rename to packages/modules/stock-location/package.json index f151a66192..a079ac0bff 100644 --- a/packages/modules/stock-location-next/package.json +++ b/packages/modules/stock-location/package.json @@ -1,5 +1,5 @@ { - "name": "@medusajs/stock-location-next", + "name": "@medusajs/stock-location", "version": "0.0.3", "description": "Stock Location Module for Medusa", "main": "dist/index.js", @@ -24,6 +24,7 @@ "license": "MIT", "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -31,7 +32,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^5.0.1", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/stock-location-next/src/index.ts b/packages/modules/stock-location/src/index.ts similarity index 100% rename from packages/modules/stock-location-next/src/index.ts rename to packages/modules/stock-location/src/index.ts diff --git a/packages/modules/stock-location-next/src/joiner-config.ts b/packages/modules/stock-location/src/joiner-config.ts similarity index 100% rename from packages/modules/stock-location-next/src/joiner-config.ts rename to packages/modules/stock-location/src/joiner-config.ts diff --git a/packages/modules/stock-location-next/src/migrations/.snapshot-medusa-stock-location.json b/packages/modules/stock-location/src/migrations/.snapshot-medusa-stock-location.json similarity index 100% rename from packages/modules/stock-location-next/src/migrations/.snapshot-medusa-stock-location.json rename to packages/modules/stock-location/src/migrations/.snapshot-medusa-stock-location.json diff --git a/packages/modules/stock-location-next/src/migrations/Migration20240307161216.ts b/packages/modules/stock-location/src/migrations/Migration20240307161216.ts similarity index 100% rename from packages/modules/stock-location-next/src/migrations/Migration20240307161216.ts rename to packages/modules/stock-location/src/migrations/Migration20240307161216.ts diff --git a/packages/modules/stock-location-next/src/models/index.ts b/packages/modules/stock-location/src/models/index.ts similarity index 100% rename from packages/modules/stock-location-next/src/models/index.ts rename to packages/modules/stock-location/src/models/index.ts diff --git a/packages/modules/stock-location-next/src/models/stock-location-address.ts b/packages/modules/stock-location/src/models/stock-location-address.ts similarity index 100% rename from packages/modules/stock-location-next/src/models/stock-location-address.ts rename to packages/modules/stock-location/src/models/stock-location-address.ts diff --git a/packages/modules/stock-location-next/src/models/stock-location.ts b/packages/modules/stock-location/src/models/stock-location.ts similarity index 100% rename from packages/modules/stock-location-next/src/models/stock-location.ts rename to packages/modules/stock-location/src/models/stock-location.ts diff --git a/packages/modules/stock-location-next/src/schema/index.ts b/packages/modules/stock-location/src/schema/index.ts similarity index 100% rename from packages/modules/stock-location-next/src/schema/index.ts rename to packages/modules/stock-location/src/schema/index.ts diff --git a/packages/modules/stock-location-next/src/services/__tests__/noop.ts b/packages/modules/stock-location/src/services/__tests__/noop.ts similarity index 100% rename from packages/modules/stock-location-next/src/services/__tests__/noop.ts rename to packages/modules/stock-location/src/services/__tests__/noop.ts diff --git a/packages/modules/stock-location-next/src/services/index.ts b/packages/modules/stock-location/src/services/index.ts similarity index 100% rename from packages/modules/stock-location-next/src/services/index.ts rename to packages/modules/stock-location/src/services/index.ts diff --git a/packages/modules/stock-location-next/src/services/stock-location-module.ts b/packages/modules/stock-location/src/services/stock-location-module.ts similarity index 100% rename from packages/modules/stock-location-next/src/services/stock-location-module.ts rename to packages/modules/stock-location/src/services/stock-location-module.ts diff --git a/packages/modules/stock-location-next/tsconfig.json b/packages/modules/stock-location/tsconfig.json similarity index 100% rename from packages/modules/stock-location-next/tsconfig.json rename to packages/modules/stock-location/tsconfig.json diff --git a/packages/modules/store/integration-tests/__tests__/store-module-service.spec.ts b/packages/modules/store/integration-tests/__tests__/store-module-service.spec.ts index 15f5198e7d..40e1c33fc8 100644 --- a/packages/modules/store/integration-tests/__tests__/store-module-service.spec.ts +++ b/packages/modules/store/integration-tests/__tests__/store-module-service.spec.ts @@ -1,7 +1,7 @@ import { IStoreModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { StoreModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { createStoreFixture } from "../__fixtures__" jest.setTimeout(100000) diff --git a/packages/modules/store/package.json b/packages/modules/store/package.json index 201af4e8e3..e41b0eb9fa 100644 --- a/packages/modules/store/package.json +++ b/packages/modules/store/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/tax/integration-tests/__tests__/index.spec.ts b/packages/modules/tax/integration-tests/__tests__/index.spec.ts index d17c74efeb..b07761e3a9 100644 --- a/packages/modules/tax/integration-tests/__tests__/index.spec.ts +++ b/packages/modules/tax/integration-tests/__tests__/index.spec.ts @@ -1,7 +1,7 @@ import { ITaxModuleService } from "@medusajs/framework/types" import { Module, Modules } from "@medusajs/framework/utils" import { TaxModuleService } from "@services" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { setupTaxStructure } from "../utils/setup-tax-structure" jest.setTimeout(30000) diff --git a/packages/modules/tax/package.json b/packages/modules/tax/package.json index e4be9ecd0d..23fb1e61cc 100644 --- a/packages/modules/tax/package.json +++ b/packages/modules/tax/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.42", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/user/integration-tests/__tests__/invite.spec.ts b/packages/modules/user/integration-tests/__tests__/invite.spec.ts index ee8abb7f0f..11c403597e 100644 --- a/packages/modules/user/integration-tests/__tests__/invite.spec.ts +++ b/packages/modules/user/integration-tests/__tests__/invite.spec.ts @@ -3,7 +3,7 @@ import { Modules, UserEvents } from "@medusajs/framework/utils" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/user/integration-tests/__tests__/user.spec.ts b/packages/modules/user/integration-tests/__tests__/user.spec.ts index b5d8b90296..8acb225e5d 100644 --- a/packages/modules/user/integration-tests/__tests__/user.spec.ts +++ b/packages/modules/user/integration-tests/__tests__/user.spec.ts @@ -4,7 +4,7 @@ import { UserModuleService } from "@services" import { MockEventBusService, moduleIntegrationTestRunner, -} from "medusa-test-utils" +} from "@medusajs/test-utils" jest.setTimeout(30000) diff --git a/packages/modules/user/package.json b/packages/modules/user/package.json index a859a7b075..2f75ecae19 100644 --- a/packages/modules/user/package.json +++ b/packages/modules/user/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.43", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts b/packages/modules/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts index 6ee43e3d6c..e499e9381b 100644 --- a/packages/modules/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts +++ b/packages/modules/workflow-engine-inmemory/integration-tests/__tests__/index.spec.ts @@ -11,7 +11,7 @@ import { } from "@medusajs/framework/utils" import { WorkflowsModuleService } from "@services" import { asFunction } from "awilix" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { setTimeout as setTimeoutPromise } from "timers/promises" import "../__fixtures__" import { diff --git a/packages/modules/workflow-engine-inmemory/package.json b/packages/modules/workflow-engine-inmemory/package.json index ff2b1e3bf0..e754f28adc 100644 --- a/packages/modules/workflow-engine-inmemory/package.json +++ b/packages/modules/workflow-engine-inmemory/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/packages/modules/workflow-engine-redis/integration-tests/__tests__/index.spec.ts b/packages/modules/workflow-engine-redis/integration-tests/__tests__/index.spec.ts index fd05fdac92..323a03c20e 100644 --- a/packages/modules/workflow-engine-redis/integration-tests/__tests__/index.spec.ts +++ b/packages/modules/workflow-engine-redis/integration-tests/__tests__/index.spec.ts @@ -16,7 +16,7 @@ import { TransactionStepState, } from "@medusajs/framework/utils" import { asValue } from "awilix" -import { moduleIntegrationTestRunner } from "medusa-test-utils" +import { moduleIntegrationTestRunner } from "@medusajs/test-utils" import { setTimeout } from "timers/promises" import "../__fixtures__" import { createScheduled } from "../__fixtures__/workflow_scheduled" diff --git a/packages/modules/workflow-engine-redis/package.json b/packages/modules/workflow-engine-redis/package.json index c18884d43a..e6b04cbf71 100644 --- a/packages/modules/workflow-engine-redis/package.json +++ b/packages/modules/workflow-engine-redis/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@medusajs/framework": "^0.0.1", + "@medusajs/test-utils": "^1.1.44", "@mikro-orm/cli": "5.9.7", "@mikro-orm/core": "5.9.7", "@mikro-orm/migrations": "5.9.7", @@ -45,7 +46,6 @@ "@swc/core": "^1.7.28", "@swc/jest": "^0.2.36", "jest": "^29.7.0", - "medusa-test-utils": "^1.1.44", "rimraf": "^3.0.2", "tsc-alias": "^1.8.6", "typescript": "^5.6.2" diff --git a/yarn.lock b/yarn.lock index e91411582a..b1686f2a8e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5315,11 +5315,11 @@ __metadata: resolution: "@medusajs/api-key@workspace:packages/modules/api-key" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5386,6 +5386,7 @@ __metadata: resolution: "@medusajs/auth@workspace:packages/modules/auth" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5393,7 +5394,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.42 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5442,6 +5442,7 @@ __metadata: version: 0.0.0-use.local resolution: "@medusajs/cart@workspace:packages/modules/cart" dependencies: + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5449,7 +5450,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5462,6 +5462,57 @@ __metadata: languageName: unknown linkType: soft +"@medusajs/cli@^1.3.22, @medusajs/cli@workspace:packages/cli/medusa-cli": + version: 0.0.0-use.local + resolution: "@medusajs/cli@workspace:packages/cli/medusa-cli" + dependencies: + "@medusajs/telemetry": ^0.0.17 + "@medusajs/utils": 1.11.9 + "@mikro-orm/core": 5.9.7 + "@mikro-orm/knex": 5.9.7 + "@mikro-orm/migrations": 5.9.7 + "@mikro-orm/postgresql": 5.9.7 + "@swc/core": ^1.7.28 + "@swc/jest": ^0.2.36 + "@types/express": ^4.17.17 + "@types/yargs": ^15.0.15 + awilix: ^8.0.1 + chalk: ^4.0.0 + configstore: 5.0.1 + dotenv: ^16.4.5 + execa: ^5.1.1 + express: ^4.21.0 + fs-exists-cached: ^1.0.0 + fs-extra: ^10.0.0 + glob: ^7.1.6 + hosted-git-info: ^4.0.2 + inquirer: ^8.0.0 + is-valid-path: ^0.1.1 + jest: ^29.7.0 + meant: ^1.0.3 + ora: ^5.4.1 + pg: ^8.13.0 + pg-god: ^1.0.12 + prompts: ^2.4.2 + resolve-cwd: ^3.0.0 + rimraf: ^5.0.1 + stack-trace: ^0.0.10 + typescript: ^5.6.2 + ulid: ^2.3.0 + winston: ^3.8.2 + yargs: ^15.3.1 + peerDependencies: + "@mikro-orm/core": 5.9.7 + "@mikro-orm/knex": 5.9.7 + "@mikro-orm/migrations": 5.9.7 + "@mikro-orm/postgresql": 5.9.7 + awilix: ^8.0.1 + pg: ^8.13.0 + bin: + medusa: cli.js + languageName: unknown + linkType: soft + "@medusajs/core-flows@^0.0.9, @medusajs/core-flows@workspace:*, @medusajs/core-flows@workspace:^, @medusajs/core-flows@workspace:packages/core/core-flows": version: 0.0.0-use.local resolution: "@medusajs/core-flows@workspace:packages/core/core-flows" @@ -5491,6 +5542,7 @@ __metadata: resolution: "@medusajs/currency@workspace:packages/modules/currency" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5498,7 +5550,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5516,6 +5567,7 @@ __metadata: resolution: "@medusajs/customer@workspace:packages/modules/customer" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5523,7 +5575,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5625,9 +5676,9 @@ __metadata: languageName: unknown linkType: soft -"@medusajs/file-local-next@^0.0.2, @medusajs/file-local-next@workspace:packages/modules/providers/file-local": +"@medusajs/file-local@^0.0.2, @medusajs/file-local@workspace:packages/modules/providers/file-local": version: 0.0.0-use.local - resolution: "@medusajs/file-local-next@workspace:packages/modules/providers/file-local" + resolution: "@medusajs/file-local@workspace:packages/modules/providers/file-local" dependencies: "@medusajs/framework": ^0.0.1 "@swc/core": ^1.7.28 @@ -5664,6 +5715,7 @@ __metadata: resolution: "@medusajs/file@workspace:packages/modules/file" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5671,7 +5723,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.43 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5686,9 +5737,10 @@ __metadata: resolution: "@medusajs/framework@workspace:packages/core/framework" dependencies: "@jercle/yargonaut": ^1.1.5 - "@medusajs/medusa-cli": ^1.3.22 + "@medusajs/cli": ^1.3.22 "@medusajs/modules-sdk": ^1.12.11 "@medusajs/orchestration": ^0.5.7 + "@medusajs/telemetry": ^0.0.17 "@medusajs/types": ^1.11.16 "@medusajs/utils": ^1.11.9 "@medusajs/workflows-sdk": ^0.1.6 @@ -5710,7 +5762,6 @@ __metadata: ioredis: ^5.4.1 jest: ^29.7.0 jsonwebtoken: ^9.0.2 - medusa-telemetry: ^0.0.17 morgan: ^1.9.1 pg: ^8.13.0 rimraf: ^3.0.2 @@ -5720,7 +5771,7 @@ __metadata: vite: ^5.2.11 zod: 3.22.4 peerDependencies: - "@medusajs/medusa-cli": ^1.3.22 + "@medusajs/cli": ^1.3.22 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/knex": 5.9.7 @@ -5762,6 +5813,7 @@ __metadata: resolution: "@medusajs/fulfillment@workspace:packages/modules/fulfillment" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5769,7 +5821,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5821,6 +5872,7 @@ __metadata: resolution: "@medusajs/index@workspace:packages/modules/index" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/knex": 5.9.7 @@ -5829,7 +5881,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5843,11 +5894,12 @@ __metadata: languageName: unknown linkType: soft -"@medusajs/inventory-next@^0.0.3, @medusajs/inventory-next@workspace:^, @medusajs/inventory-next@workspace:packages/modules/inventory-next": +"@medusajs/inventory@^0.0.3, @medusajs/inventory@workspace:^, @medusajs/inventory@workspace:packages/modules/inventory": version: 0.0.0-use.local - resolution: "@medusajs/inventory-next@workspace:packages/modules/inventory-next" + resolution: "@medusajs/inventory@workspace:packages/modules/inventory" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5855,7 +5907,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.43 rimraf: ^5.0.1 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5887,6 +5938,7 @@ __metadata: resolution: "@medusajs/link-modules@workspace:packages/modules/link-modules" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 "@mikro-orm/postgresql": 5.9.7 @@ -5894,7 +5946,6 @@ __metadata: "@swc/jest": ^0.2.36 cross-env: ^5.2.1 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^5.0.1 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5928,6 +5979,7 @@ __metadata: resolution: "@medusajs/locking@workspace:packages/modules/locking" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -5935,7 +5987,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -5948,57 +5999,6 @@ __metadata: languageName: unknown linkType: soft -"@medusajs/medusa-cli@^1.3.22, @medusajs/medusa-cli@workspace:packages/cli/medusa-cli": - version: 0.0.0-use.local - resolution: "@medusajs/medusa-cli@workspace:packages/cli/medusa-cli" - dependencies: - "@medusajs/utils": 1.11.9 - "@mikro-orm/core": 5.9.7 - "@mikro-orm/knex": 5.9.7 - "@mikro-orm/migrations": 5.9.7 - "@mikro-orm/postgresql": 5.9.7 - "@swc/core": ^1.7.28 - "@swc/jest": ^0.2.36 - "@types/express": ^4.17.17 - "@types/yargs": ^15.0.15 - awilix: ^8.0.1 - chalk: ^4.0.0 - configstore: 5.0.1 - dotenv: ^16.4.5 - execa: ^5.1.1 - express: ^4.21.0 - fs-exists-cached: ^1.0.0 - fs-extra: ^10.0.0 - glob: ^7.1.6 - hosted-git-info: ^4.0.2 - inquirer: ^8.0.0 - is-valid-path: ^0.1.1 - jest: ^29.7.0 - meant: ^1.0.3 - medusa-telemetry: ^0.0.17 - ora: ^5.4.1 - pg: ^8.13.0 - pg-god: ^1.0.12 - prompts: ^2.4.2 - resolve-cwd: ^3.0.0 - rimraf: ^5.0.1 - stack-trace: ^0.0.10 - typescript: ^5.6.2 - ulid: ^2.3.0 - winston: ^3.8.2 - yargs: ^15.3.1 - peerDependencies: - "@mikro-orm/core": 5.9.7 - "@mikro-orm/knex": 5.9.7 - "@mikro-orm/migrations": 5.9.7 - "@mikro-orm/postgresql": 5.9.7 - awilix: ^8.0.1 - pg: ^8.13.0 - bin: - medusa: cli.js - languageName: unknown - linkType: soft - "@medusajs/medusa-oas-cli@0.3.2, @medusajs/medusa-oas-cli@workspace:packages/cli/oas/medusa-oas-cli": version: 0.0.0-use.local resolution: "@medusajs/medusa-oas-cli@workspace:packages/cli/oas/medusa-oas-cli" @@ -6049,13 +6049,13 @@ __metadata: "@medusajs/event-bus-local": ^1.9.8 "@medusajs/event-bus-redis": ^1.8.13 "@medusajs/file": ^0.0.1 - "@medusajs/file-local-next": ^0.0.2 + "@medusajs/file-local": ^0.0.2 "@medusajs/file-s3": ^0.0.2 "@medusajs/framework": ^0.0.1 "@medusajs/fulfillment": ^0.1.2 "@medusajs/fulfillment-manual": ^0.0.2 "@medusajs/index": ^0.0.1 - "@medusajs/inventory-next": ^0.0.3 + "@medusajs/inventory": ^0.0.3 "@medusajs/link-modules": ^0.2.11 "@medusajs/locking": ^0.0.1 "@medusajs/locking-redis": ^0.0.1 @@ -6070,9 +6070,10 @@ __metadata: "@medusajs/promotion": ^0.0.4 "@medusajs/region": ^0.1.1 "@medusajs/sales-channel": ^0.1.1 - "@medusajs/stock-location-next": ^0.0.3 + "@medusajs/stock-location": ^0.0.3 "@medusajs/store": ^0.1.1 "@medusajs/tax": ^0.1.1 + "@medusajs/telemetry": ^0.0.17 "@medusajs/user": ^0.0.3 "@medusajs/workflow-engine-inmemory": ^0.0.4 "@medusajs/workflow-engine-redis": ^0.0.4 @@ -6098,7 +6099,6 @@ __metadata: jest: ^29.7.0 jsonwebtoken: ^9.0.2 lodash: ^4.17.21 - medusa-telemetry: ^0.0.17 multer: ^1.4.5-lts.1 node-schedule: ^2.1.1 qs: ^6.11.2 @@ -6184,6 +6184,7 @@ __metadata: resolution: "@medusajs/notification@workspace:packages/modules/notification" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6191,7 +6192,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6246,6 +6246,7 @@ __metadata: resolution: "@medusajs/order@workspace:packages/modules/order" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6253,7 +6254,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6288,6 +6288,7 @@ __metadata: resolution: "@medusajs/payment@workspace:packages/modules/payment" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6295,7 +6296,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6313,6 +6313,7 @@ __metadata: resolution: "@medusajs/pricing@workspace:packages/modules/pricing" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6320,7 +6321,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6338,6 +6338,7 @@ __metadata: resolution: "@medusajs/product@workspace:packages/modules/product" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6346,7 +6347,6 @@ __metadata: "@swc/jest": ^0.2.36 faker: ^5.5.3 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6364,6 +6364,7 @@ __metadata: resolution: "@medusajs/promotion@workspace:packages/modules/promotion" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6371,7 +6372,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6389,6 +6389,7 @@ __metadata: resolution: "@medusajs/region@workspace:packages/modules/region" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6396,7 +6397,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6414,6 +6414,7 @@ __metadata: resolution: "@medusajs/sales-channel@workspace:packages/modules/sales-channel" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6421,7 +6422,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.42 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6434,11 +6434,12 @@ __metadata: languageName: unknown linkType: soft -"@medusajs/stock-location-next@^0.0.3, @medusajs/stock-location-next@workspace:^, @medusajs/stock-location-next@workspace:packages/modules/stock-location-next": +"@medusajs/stock-location@^0.0.3, @medusajs/stock-location@workspace:^, @medusajs/stock-location@workspace:packages/modules/stock-location": version: 0.0.0-use.local - resolution: "@medusajs/stock-location-next@workspace:packages/modules/stock-location-next" + resolution: "@medusajs/stock-location@workspace:packages/modules/stock-location" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6446,7 +6447,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^5.0.1 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6464,6 +6464,7 @@ __metadata: resolution: "@medusajs/store@workspace:packages/modules/store" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6471,7 +6472,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6489,6 +6489,7 @@ __metadata: resolution: "@medusajs/tax@workspace:packages/modules/tax" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6496,7 +6497,6 @@ __metadata: "@swc/core": ^1.7.28 "@swc/jest": ^0.2.36 jest: ^29.7.0 - medusa-test-utils: ^1.1.42 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6509,6 +6509,59 @@ __metadata: languageName: unknown linkType: soft +"@medusajs/telemetry@^0.0.17, @medusajs/telemetry@workspace:packages/medusa-telemetry": + version: 0.0.0-use.local + resolution: "@medusajs/telemetry@workspace:packages/medusa-telemetry" + dependencies: + "@babel/runtime": ^7.22.10 + axios: ^0.21.4 + axios-retry: ^3.1.9 + boxen: ^5.0.1 + ci-info: ^3.2.0 + configstore: 5.0.1 + cross-env: ^5.2.1 + global: ^4.4.0 + is-docker: ^2.2.1 + jest: ^29.7.0 + nodemon: ^2.0.20 + remove-trailing-slash: ^0.1.1 + rimraf: ^3.0.2 + typescript: ^5.6.2 + uuid: ^8.3.2 + languageName: unknown + linkType: soft + +"@medusajs/test-utils@^1.1.44, @medusajs/test-utils@workspace:*, @medusajs/test-utils@workspace:packages/medusa-test-utils": + version: 0.0.0-use.local + resolution: "@medusajs/test-utils@workspace:packages/medusa-test-utils" + dependencies: + "@medusajs/framework": ^0.0.1 + "@mikro-orm/core": 5.9.7 + "@mikro-orm/knex": 5.9.7 + "@mikro-orm/migrations": 5.9.7 + "@mikro-orm/postgresql": 5.9.7 + "@types/express": ^4.17.17 + awilix: ^8.0.1 + axios: ^0.21.4 + express: ^4.21.0 + get-port: ^5.1.0 + jest: ^29.7.0 + pg: ^8.13.0 + pg-god: ^1.0.12 + randomatic: ^3.1.1 + rimraf: ^3.0.2 + typescript: ^5.6.2 + peerDependencies: + "@medusajs/framework": ^0.0.1 + "@medusajs/medusa": ^1.20.5 + "@mikro-orm/postgresql": 5.9.7 + awilix: ^8.0.1 + peerDependenciesMeta: + "@medusajs/medusa": + optional: true + languageName: unknown + linkType: soft + "@medusajs/toolbox@^0.0.1, @medusajs/toolbox@workspace:packages/design-system/toolbox": version: 0.0.0-use.local resolution: "@medusajs/toolbox@workspace:packages/design-system/toolbox" @@ -6650,6 +6703,7 @@ __metadata: resolution: "@medusajs/user@workspace:packages/modules/user" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6658,7 +6712,6 @@ __metadata: "@swc/jest": ^0.2.36 jest: ^29.7.0 jsonwebtoken: ^9.0.2 - medusa-test-utils: ^1.1.43 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6719,6 +6772,7 @@ __metadata: resolution: "@medusajs/workflow-engine-inmemory@workspace:packages/modules/workflow-engine-inmemory" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6727,7 +6781,6 @@ __metadata: "@swc/jest": ^0.2.36 cron-parser: ^4.9.0 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -6746,6 +6799,7 @@ __metadata: resolution: "@medusajs/workflow-engine-redis@workspace:packages/modules/workflow-engine-redis" dependencies: "@medusajs/framework": ^0.0.1 + "@medusajs/test-utils": ^1.1.44 "@mikro-orm/cli": 5.9.7 "@mikro-orm/core": 5.9.7 "@mikro-orm/migrations": 5.9.7 @@ -6755,7 +6809,6 @@ __metadata: bullmq: 5.13.0 ioredis: ^5.4.1 jest: ^29.7.0 - medusa-test-utils: ^1.1.44 rimraf: ^3.0.2 tsc-alias: ^1.8.6 typescript: ^5.6.2 @@ -17205,6 +17258,7 @@ __metadata: version: 0.0.0-use.local resolution: "create-medusa-app@workspace:packages/cli/create-medusa-app" dependencies: + "@medusajs/telemetry": ^0.0.17 "@types/chalk": ^2.2.0 "@types/commander": ^2.12.2 "@types/configstore": ^6.0.0 @@ -17226,7 +17280,6 @@ __metadata: eslint-config-prettier: ^8.8.0 eslint-plugin-prettier: ^4.2.1 inquirer: ^9.2.2 - medusa-telemetry: ^0.0.17 nanoid: ^4.0.2 node-emoji: ^2.0.2 node-fetch: ^3.3.1 @@ -21831,16 +21884,17 @@ __metadata: "@medusajs/event-bus-local": "workspace:*" "@medusajs/fulfillment": "workspace:^" "@medusajs/fulfillment-manual": "workspace:^" - "@medusajs/inventory-next": "workspace:^" + "@medusajs/inventory": "workspace:^" "@medusajs/medusa": "workspace:*" "@medusajs/modules-sdk": "workspace:^" "@medusajs/pricing": "workspace:^" "@medusajs/product": "workspace:^" "@medusajs/promotion": "workspace:^" "@medusajs/region": "workspace:^" - "@medusajs/stock-location-next": "workspace:^" + "@medusajs/stock-location": "workspace:^" "@medusajs/store": "workspace:^" "@medusajs/tax": "workspace:^" + "@medusajs/test-utils": "workspace:*" "@medusajs/types": "workspace:^" "@medusajs/user": "workspace:^" "@medusajs/utils": "workspace:^" @@ -21850,7 +21904,6 @@ __metadata: form-data: ^4.0.0 jest: ^29.7.0 jsonwebtoken: ^9.0.2 - medusa-test-utils: "workspace:*" pg: ^8.11.3 typescript: ^5.6.2 languageName: unknown @@ -21870,7 +21923,7 @@ __metadata: "@medusajs/framework": "workspace:^" "@medusajs/fulfillment": "workspace:^" "@medusajs/fulfillment-manual": "workspace:^" - "@medusajs/inventory-next": "workspace:^" + "@medusajs/inventory": "workspace:^" "@medusajs/link-modules": "workspace:^" "@medusajs/medusa": "workspace:*" "@medusajs/modules-sdk": "workspace:^" @@ -21879,9 +21932,10 @@ __metadata: "@medusajs/product": "workspace:^" "@medusajs/promotion": "workspace:^" "@medusajs/region": "workspace:^" - "@medusajs/stock-location-next": "workspace:^" + "@medusajs/stock-location": "workspace:^" "@medusajs/store": "workspace:^" "@medusajs/tax": "workspace:^" + "@medusajs/test-utils": "workspace:*" "@medusajs/types": "workspace:^" "@medusajs/user": "workspace:^" "@medusajs/utils": "workspace:^" @@ -21891,7 +21945,6 @@ __metadata: faker: ^5.5.3 jest: ^29.7.0 jsonwebtoken: ^9.0.2 - medusa-test-utils: "workspace:*" pg: ^8.11.3 scrypt-kdf: ^2.0.1 typescript: ^5.6.2 @@ -24590,59 +24643,6 @@ __metadata: languageName: unknown linkType: soft -"medusa-telemetry@^0.0.17, medusa-telemetry@workspace:packages/medusa-telemetry": - version: 0.0.0-use.local - resolution: "medusa-telemetry@workspace:packages/medusa-telemetry" - dependencies: - "@babel/runtime": ^7.22.10 - axios: ^0.21.4 - axios-retry: ^3.1.9 - boxen: ^5.0.1 - ci-info: ^3.2.0 - configstore: 5.0.1 - cross-env: ^5.2.1 - global: ^4.4.0 - is-docker: ^2.2.1 - jest: ^29.7.0 - nodemon: ^2.0.20 - remove-trailing-slash: ^0.1.1 - rimraf: ^3.0.2 - typescript: ^5.6.2 - uuid: ^8.3.2 - languageName: unknown - linkType: soft - -"medusa-test-utils@^1.1.42, medusa-test-utils@^1.1.43, medusa-test-utils@^1.1.44, medusa-test-utils@workspace:*, medusa-test-utils@workspace:packages/medusa-test-utils": - version: 0.0.0-use.local - resolution: "medusa-test-utils@workspace:packages/medusa-test-utils" - dependencies: - "@medusajs/framework": ^0.0.1 - "@mikro-orm/core": 5.9.7 - "@mikro-orm/knex": 5.9.7 - "@mikro-orm/migrations": 5.9.7 - "@mikro-orm/postgresql": 5.9.7 - "@types/express": ^4.17.17 - awilix: ^8.0.1 - axios: ^0.21.4 - express: ^4.21.0 - get-port: ^5.1.0 - jest: ^29.7.0 - pg: ^8.13.0 - pg-god: ^1.0.12 - randomatic: ^3.1.1 - rimraf: ^3.0.2 - typescript: ^5.6.2 - peerDependencies: - "@medusajs/framework": ^0.0.1 - "@medusajs/medusa": ^1.20.5 - "@mikro-orm/postgresql": 5.9.7 - awilix: ^8.0.1 - peerDependenciesMeta: - "@medusajs/medusa": - optional: true - languageName: unknown - linkType: soft - "memoizerific@npm:^1.11.3": version: 1.11.3 resolution: "memoizerific@npm:1.11.3"