From 25634b038248ab6501af719faec79b59b496bada Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Tue, 16 Sep 2025 11:11:03 +0200 Subject: [PATCH] test(): test dynamic max workers and improve CI (#13516) * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * test(): test dynamic max workers * Clarify test description and improve CI --- .changeset/lucky-shrimps-hang.md | 26 +++++++++++ .github/actions/cache-deps/action.yml | 4 +- .github/workflows/action.yml | 44 ++++++++++++------- .github/workflows/test-cli-with-database.yml | 25 ++++++----- integration-tests/api/package.json | 4 +- integration-tests/http/package.json | 4 +- .../__tests__/index/query-index.spec.ts | 40 +++++------------ .../modules/__tests__/index/search.spec.ts | 12 +---- integration-tests/modules/package.json | 4 +- packages/core/core-flows/package.json | 2 +- packages/core/framework/package.json | 2 +- packages/core/js-sdk/package.json | 2 +- packages/core/modules-sdk/package.json | 2 +- packages/core/orchestration/package.json | 2 +- packages/core/utils/package.json | 4 +- packages/core/workflows-sdk/package.json | 2 +- packages/medusa/package.json | 2 +- packages/modules/analytics/package.json | 2 +- packages/modules/api-key/package.json | 2 +- packages/modules/auth/package.json | 2 +- packages/modules/cart/package.json | 2 +- packages/modules/currency/package.json | 2 +- packages/modules/customer/package.json | 2 +- packages/modules/event-bus-local/package.json | 2 +- packages/modules/event-bus-redis/package.json | 4 +- packages/modules/file/package.json | 2 +- packages/modules/fulfillment/package.json | 2 +- .../__fixtures__/medusa-config.js | 3 +- packages/modules/index/package.json | 2 +- packages/modules/inventory/package.json | 2 +- packages/modules/link-modules/package.json | 2 +- packages/modules/locking/package.json | 2 +- packages/modules/notification/package.json | 2 +- packages/modules/order/package.json | 2 +- packages/modules/payment/package.json | 2 +- packages/modules/pricing/package.json | 2 +- packages/modules/product/package.json | 2 +- packages/modules/promotion/package.json | 2 +- packages/modules/region/package.json | 2 +- packages/modules/sales-channel/package.json | 2 +- packages/modules/settings/package.json | 2 +- packages/modules/stock-location/package.json | 2 +- packages/modules/store/package.json | 2 +- packages/modules/tax/package.json | 2 +- packages/modules/user/package.json | 2 +- .../workflow-engine-inmemory/package.json | 2 +- .../workflow-engine-redis/package.json | 2 +- 47 files changed, 131 insertions(+), 113 deletions(-) create mode 100644 .changeset/lucky-shrimps-hang.md diff --git a/.changeset/lucky-shrimps-hang.md b/.changeset/lucky-shrimps-hang.md new file mode 100644 index 0000000000..ce838d19d9 --- /dev/null +++ b/.changeset/lucky-shrimps-hang.md @@ -0,0 +1,26 @@ +--- +"@medusajs/medusa": patch +"@medusajs/analytics": patch +"@medusajs/api-key": patch +"@medusajs/auth": patch +"@medusajs/cart": patch +"@medusajs/currency": patch +"@medusajs/customer": patch +"@medusajs/event-bus-local": patch +"@medusajs/event-bus-redis": patch +"@medusajs/file": patch +"@medusajs/fulfillment": patch +"@medusajs/index": patch +"@medusajs/inventory": patch +"@medusajs/link-modules": patch +"@medusajs/core-flows": patch +"@medusajs/framework": patch +"@medusajs/js-sdk": patch +"@medusajs/modules-sdk": patch +"@medusajs/orchestration": patch +"@medusajs/utils": patch +"@medusajs/workflows-sdk": patch +--- + +test(): test dynamic max workers and improve CI + diff --git a/.github/actions/cache-deps/action.yml b/.github/actions/cache-deps/action.yml index bb80c6a23e..a84ca8aafe 100644 --- a/.github/actions/cache-deps/action.yml +++ b/.github/actions/cache-deps/action.yml @@ -6,7 +6,7 @@ inputs: runs: using: composite steps: - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: cache with: path: | @@ -15,7 +15,7 @@ runs: restore-keys: | ${{ runner.os }}-yarn-${{inputs.extension}}-v8-3 # We want to only bootstrap and install if no cache is found. - - run: yarn install --immutable + - run: yarn install --immutable --inline-builds shell: bash - run: yarn build diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index f04e3707ed..a5edc44b7c 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -22,7 +22,7 @@ jobs: access_token: ${{ github.token }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -30,7 +30,6 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: "yarn" - name: Assert changed run: ./scripts/assert-changed-files-actions.sh "packages" @@ -50,12 +49,13 @@ jobs: TURBO_TEAM: ${{ secrets.TURBO_TEAM }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 100 - - name: Assert changed - run: ./scripts/assert-changed-files-actions.sh "packages" + - name: Get number of CPU cores + id: cpu-cores + uses: SimenB/github-actions-cpu-cores@v2 - name: Install dependencies uses: ./.github/actions/cache-deps @@ -63,7 +63,7 @@ jobs: extension: pipeline - name: Run unit tests - run: yarn test:chunk + run: yarn test:chunk -- --maxWorkers=${{ steps.cpu-cores.outputs.count }} integration-tests-packages-matrix: needs: setup @@ -102,9 +102,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 100 + + - name: Get number of CPU cores + id: cpu-cores + uses: SimenB/github-actions-cpu-cores@v2 - name: Install dependencies uses: ./.github/actions/cache-deps @@ -112,7 +116,7 @@ jobs: extension: pipeline - name: Run integration tests - run: yarn test:integration:packages:${{ matrix.group }} + run: yarn test:integration:packages:${{ matrix.group }} -- --maxWorkers=${{ steps.cpu-cores.outputs.count }} env: DB_PASSWORD: postgres DB_USERNAME: postgres @@ -169,9 +173,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 100 + + - name: Get number of CPU cores + id: cpu-cores + uses: SimenB/github-actions-cpu-cores@v2 - name: Install dependencies uses: ./.github/actions/cache-deps @@ -179,7 +187,7 @@ jobs: extension: pipeline - name: Run HTTP integration tests - run: yarn test:integration:http -- --shard=${{ matrix.shard_index }}/3 + run: yarn test:integration:http -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }} env: DB_USERNAME: postgres DB_PASSWORD: postgres @@ -236,9 +244,13 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 100 + + - name: Get number of CPU cores + id: cpu-cores + uses: SimenB/github-actions-cpu-cores@v2 - name: Install dependencies uses: ./.github/actions/cache-deps @@ -246,7 +258,7 @@ jobs: extension: pipeline - name: Run Modules integration tests - run: yarn test:integration:modules -- --shard=${{ matrix.shard_index }}/3 + run: yarn test:integration:modules -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }} env: DB_USERNAME: postgres DB_PASSWORD: postgres diff --git a/.github/workflows/test-cli-with-database.yml b/.github/workflows/test-cli-with-database.yml index 5c8a118901..0605f1c551 100644 --- a/.github/workflows/test-cli-with-database.yml +++ b/.github/workflows/test-cli-with-database.yml @@ -10,43 +10,46 @@ jobs: TURBO_TEAM: ${{ secrets.TURBO_TEAM }} REDIS_URL: redis://localhost:6379 DATABASE_URL: "postgres://postgres:postgres@localhost/cli-test" + NPM_CONFIG_LOGLEVEL: error + NPM_CONFIG_AUDIT: false + NPM_CONFIG_FUND: false + NPM_CONFIG_UPDATE_NOTIFIER: false services: redis: image: redis options: >- --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 10s + --health-retries 10 ports: - 6379:6379 postgres: - image: postgres + image: postgres:15-alpine env: POSTGRES_PASSWORD: postgres POSTGRES_USER: postgres POSTGRES_DB: cli-test options: >- --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + --health-interval 1s + --health-timeout 10s + --health-retries 10 ports: - 5432:5432 runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - fetch-depth: 0 + fetch-depth: 100 - name: Setup Node.js environment uses: actions/setup-node@v4 with: node-version: 20 - cache: "yarn" - name: Install dependencies uses: ./.github/actions/cache-deps @@ -65,7 +68,7 @@ jobs: run: corepack enable - name: Install new app dependencies (via resolutions) - run: rm -f package-lock.json && yarn install --no-immutable + run: rm -f package-lock.json && yarn install --inline-builds --silent env: YARN_ENABLE_IMMUTABLE_INSTALLS: false working-directory: ../cli-test diff --git a/integration-tests/api/package.json b/integration-tests/api/package.json index 6928cb7518..b5faa17ad7 100644 --- a/integration-tests/api/package.json +++ b/integration-tests/api/package.json @@ -5,8 +5,8 @@ "license": "MIT", "private": true, "scripts": { - "test:integration": "jest --silent=false --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", - "test:integration:chunk": "jest --silent --no-cache --bail --maxWorkers=50% --forceExit --detectOpenHandles --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")", + "test:integration": "jest --silent=false --no-cache --bail --detectOpenHandles --forceExit --logHeapUsage", + "test:integration:chunk": "jest --silent --no-cache --bail --forceExit --detectOpenHandles --testPathPattern=$(echo $CHUNKS | jq -r \".[${CHUNK}] | .[]\")", "build": "tsc ./src/* --allowJs --outDir ./dist" }, "dependencies": { diff --git a/integration-tests/http/package.json b/integration-tests/http/package.json index 3ac4c53c5f..6a03f7fb8c 100644 --- a/integration-tests/http/package.json +++ b/integration-tests/http/package.json @@ -5,8 +5,8 @@ "license": "MIT", "private": true, "scripts": { - "test:integration": "jest --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", - "test:integration:chunk": "jest --silent --no-cache --bail --maxWorkers=50% --forceExit", + "test:integration": "jest --no-cache --bail --detectOpenHandles --forceExit --logHeapUsage", + "test:integration:chunk": "jest --silent --no-cache --bail --forceExit", "build": "tsc --allowJs --outDir ./dist" }, "dependencies": { diff --git a/integration-tests/modules/__tests__/index/query-index.spec.ts b/integration-tests/modules/__tests__/index/query-index.spec.ts index 0725d5f4c8..967e776698 100644 --- a/integration-tests/modules/__tests__/index/query-index.spec.ts +++ b/integration-tests/modules/__tests__/index/query-index.spec.ts @@ -91,7 +91,7 @@ async function populateData(api: any) { ) const products = response.data.created - await setTimeout(10000) + await setTimeout(5000) return products } @@ -144,6 +144,8 @@ medusaIntegrationTestRunner({ }, }) + await setTimeout(1000) + const query = appContainer.resolve( ContainerRegistrationKeys.QUERY ) as RemoteQueryFunction @@ -200,11 +202,7 @@ medusaIntegrationTestRunner({ }, }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) expect(resultset.metadata).toEqual({ @@ -366,11 +364,7 @@ medusaIntegrationTestRunner({ }, }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) // Limiting to 1 on purpose to keep it simple and check the correct order is maintained @@ -424,11 +418,7 @@ medusaIntegrationTestRunner({ }, }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) // Limiting to 1 on purpose to keep it simple and check the correct order is maintained @@ -478,11 +468,7 @@ medusaIntegrationTestRunner({ }, }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) expect(resultset.data.length).toEqual(2) @@ -504,11 +490,7 @@ medusaIntegrationTestRunner({ origin_country: ["USA"], }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) expect(resultset.data.length).toEqual(1) @@ -533,6 +515,8 @@ medusaIntegrationTestRunner({ }, }) + await setTimeout(1000) + const query = appContainer.resolve( ContainerRegistrationKeys.QUERY ) as RemoteQueryFunction @@ -551,8 +535,8 @@ medusaIntegrationTestRunner({ }), ({ data }) => data.length > 0, { - retries: 3, - waitSeconds: 3, + retries: 5, + waitSeconds: 1.5, } ) expect(resultset.data.length).toEqual(1) diff --git a/integration-tests/modules/__tests__/index/search.spec.ts b/integration-tests/modules/__tests__/index/search.spec.ts index 6ce0235479..239a8638fd 100644 --- a/integration-tests/modules/__tests__/index/search.spec.ts +++ b/integration-tests/modules/__tests__/index/search.spec.ts @@ -113,11 +113,7 @@ medusaIntegrationTestRunner({ }, }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) expect(results.length).toBe(1) @@ -171,11 +167,7 @@ medusaIntegrationTestRunner({ }, }, }), - ({ data }) => data.length > 0, - { - retries: 3, - waitSeconds: 3, - } + ({ data }) => data.length > 0 ) expect(results.length).toBe(1) diff --git a/integration-tests/modules/package.json b/integration-tests/modules/package.json index 52e100fe69..7f125c805f 100644 --- a/integration-tests/modules/package.json +++ b/integration-tests/modules/package.json @@ -5,8 +5,8 @@ "license": "MIT", "private": true, "scripts": { - "test:integration": "jest --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage", - "test:integration:chunk": "jest --silent --no-cache --bail --maxWorkers=50% --forceExit", + "test:integration": "jest --no-cache --bail --detectOpenHandles --forceExit --logHeapUsage", + "test:integration:chunk": "jest --silent --no-cache --bail --forceExit", "build": "tsc --allowJs --outDir ./dist" }, "dependencies": { diff --git a/packages/core/core-flows/package.json b/packages/core/core-flows/package.json index 7a123fd0a0..b4bba23bb0 100644 --- a/packages/core/core-flows/package.json +++ b/packages/core/core-flows/package.json @@ -52,6 +52,6 @@ "scripts": { "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", - "test": "jest --runInBand --bail --forceExit --passWithNoTests" + "test": "jest --bail --forceExit --passWithNoTests" } } diff --git a/packages/core/framework/package.json b/packages/core/framework/package.json index 247e771de0..3c335c0230 100644 --- a/packages/core/framework/package.json +++ b/packages/core/framework/package.json @@ -51,7 +51,7 @@ "watch": "tsc --watch ", "watch:test": "tsc --watch", "build": "rimraf dist && tsc --build", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts" + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts" }, "devDependencies": { "@aws-sdk/client-dynamodb": "^3.218.0", diff --git a/packages/core/js-sdk/package.json b/packages/core/js-sdk/package.json index 64a4534729..ea73b0cce0 100644 --- a/packages/core/js-sdk/package.json +++ b/packages/core/js-sdk/package.json @@ -41,7 +41,7 @@ }, "scripts": { "build": "rimraf dist && tsc -p tsconfig.json && tsc -p tsconfig.esm.json", - "test": "jest --passWithNoTests --runInBand --bail --forceExit --detectOpenHandles", + "test": "jest --passWithNoTests --bail --forceExit --detectOpenHandles", "watch": "tsc --build --watch" } } diff --git a/packages/core/modules-sdk/package.json b/packages/core/modules-sdk/package.json index ae7a0d0847..1d9a4e2640 100644 --- a/packages/core/modules-sdk/package.json +++ b/packages/core/modules-sdk/package.json @@ -27,7 +27,7 @@ "license": "MIT", "scripts": { "build": "rimraf dist && tsc --build", - "test": "jest --runInBand --bail --forceExit", + "test": "jest --bail --forceExit", "watch": "tsc --build --watch" }, "devDependencies": { diff --git a/packages/core/orchestration/package.json b/packages/core/orchestration/package.json index af99f6ede2..339ae819ff 100644 --- a/packages/core/orchestration/package.json +++ b/packages/core/orchestration/package.json @@ -55,6 +55,6 @@ "scripts": { "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", - "test": "jest --runInBand --bail --forceExit" + "test": "jest --bail --forceExit" } } diff --git a/packages/core/utils/package.json b/packages/core/utils/package.json index cf82180761..621b3c4364 100644 --- a/packages/core/utils/package.json +++ b/packages/core/utils/package.json @@ -71,7 +71,7 @@ "scripts": { "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", - "test": "jest --silent=false --bail --maxWorkers=50% --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts", - "test:integration": "jest --silent --bail --runInBand --forceExit -- src/**/integration-tests/__tests__/**/*.ts" + "test": "jest --silent=false --bail --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts", + "test:integration": "jest --silent --bail --forceExit -- src/**/integration-tests/__tests__/**/*.ts" } } diff --git a/packages/core/workflows-sdk/package.json b/packages/core/workflows-sdk/package.json index dca860609f..c1b83d97e0 100644 --- a/packages/core/workflows-sdk/package.json +++ b/packages/core/workflows-sdk/package.json @@ -60,7 +60,7 @@ "scripts": { "build": "rimraf dist && tsc --build", "watch": "tsc --build --watch", - "test": "jest --runInBand --bail --forceExit", + "test": "jest --bail --forceExit", "test:run": "node ./dist/utils/_playground.js" } } diff --git a/packages/medusa/package.json b/packages/medusa/package.json index 8b2a890b10..812b791b44 100644 --- a/packages/medusa/package.json +++ b/packages/medusa/package.json @@ -44,7 +44,7 @@ "watch": "tsc --build --watch", "build": "rimraf dist && tsc --build", "serve": "node dist/app.js", - "test": "jest --runInBand --bail --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- src/**/integration-tests/**/__tests__/**/*.ts" }, "devDependencies": { diff --git a/packages/modules/analytics/package.json b/packages/modules/analytics/package.json index 3805e1a142..acbce52ee2 100644 --- a/packages/modules/analytics/package.json +++ b/packages/modules/analytics/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts" }, "devDependencies": { diff --git a/packages/modules/api-key/package.json b/packages/modules/api-key/package.json index 9fbff7baf9..9e012a69aa 100644 --- a/packages/modules/api-key/package.json +++ b/packages/modules/api-key/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/auth/package.json b/packages/modules/auth/package.json index 6f4b39e601..5a52fd4c08 100644 --- a/packages/modules/auth/package.json +++ b/packages/modules/auth/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", + "test": "jest --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/cart/package.json b/packages/modules/cart/package.json index da63c0edc8..5eb09207cc 100644 --- a/packages/modules/cart/package.json +++ b/packages/modules/cart/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", + "test": "jest --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/currency/package.json b/packages/modules/currency/package.json index 37a846579f..1c769094d7 100644 --- a/packages/modules/currency/package.json +++ b/packages/modules/currency/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/customer/package.json b/packages/modules/customer/package.json index aca46a44b8..7247b2152a 100644 --- a/packages/modules/customer/package.json +++ b/packages/modules/customer/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", + "test": "jest --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:generate": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:generate", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", diff --git a/packages/modules/event-bus-local/package.json b/packages/modules/event-bus-local/package.json index b913db836f..0bf88d2c0d 100644 --- a/packages/modules/event-bus-local/package.json +++ b/packages/modules/event-bus-local/package.json @@ -34,7 +34,7 @@ "watch": "tsc --build --watch", "build": "rimraf dist && tsc --build", "test": "jest --passWithNoTests", - "test:integration": "jest --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage -- integration-tests/__tests__/**/*.spec.ts" + "test:integration": "jest --no-cache --bail --detectOpenHandles --forceExit --logHeapUsage -- integration-tests/__tests__/**/*.spec.ts" }, "dependencies": { "ulid": "^2.3.0" diff --git a/packages/modules/event-bus-redis/package.json b/packages/modules/event-bus-redis/package.json index fc300c30eb..200a4b58eb 100644 --- a/packages/modules/event-bus-redis/package.json +++ b/packages/modules/event-bus-redis/package.json @@ -33,8 +33,8 @@ "scripts": { "watch": "tsc --build --watch", "build": "rimraf dist && tsc --build", - "test": "jest --silent --bail --maxWorkers=50% --forceExit", - "test:integration": "jest --no-cache --maxWorkers=50% --bail --detectOpenHandles --forceExit --logHeapUsage -- integration-tests/__tests__/**/*.spec.ts" + "test": "jest --silent --bail --forceExit", + "test:integration": "jest --no-cache --bail --detectOpenHandles --forceExit --logHeapUsage -- integration-tests/__tests__/**/*.spec.ts" }, "dependencies": { "bullmq": "5.13.0", diff --git a/packages/modules/file/package.json b/packages/modules/file/package.json index 3a279f0017..bcb1a24b30 100644 --- a/packages/modules/file/package.json +++ b/packages/modules/file/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --passWithNoTests --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --passWithNoTests --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/fulfillment/package.json b/packages/modules/fulfillment/package.json index 43fef891b7..e090d62493 100644 --- a/packages/modules/fulfillment/package.json +++ b/packages/modules/fulfillment/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit --passWithNoTests -- src", + "test": "jest --bail --forceExit --passWithNoTests -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial -n InitialSetupMigration", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/index/integration-tests/__fixtures__/medusa-config.js b/packages/modules/index/integration-tests/__fixtures__/medusa-config.js index cd9de6aa02..176a3116be 100644 --- a/packages/modules/index/integration-tests/__fixtures__/medusa-config.js +++ b/packages/modules/index/integration-tests/__fixtures__/medusa-config.js @@ -5,7 +5,8 @@ const { } = require("@medusajs/framework/utils") const { schema } = require("./schema") -export const dbName = "medusa-index-integration-2024" +export const dbName = + "medusa-index-integration-2024-" + Math.random().toString(36).substring(2, 15) const DB_HOST = process.env.DB_HOST ?? "localhost:5432" const DB_USERNAME = process.env.DB_USERNAME ?? "" const DB_PASSWORD = process.env.DB_PASSWORD ?? "" diff --git a/packages/modules/index/package.json b/packages/modules/index/package.json index 4735300633..b7f6493603 100644 --- a/packages/modules/index/package.json +++ b/packages/modules/index/package.json @@ -29,7 +29,7 @@ "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", "test": "jest --passWithNoTests ./src", - "test:integration": "jest --forceExit --runInBand -- integration-tests/__tests__/**/*.ts", + "test:integration": "jest --forceExit -- integration-tests/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", "migration:up": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:up", diff --git a/packages/modules/inventory/package.json b/packages/modules/inventory/package.json index 37e14310f0..69fc6d01e2 100644 --- a/packages/modules/inventory/package.json +++ b/packages/modules/inventory/package.json @@ -48,7 +48,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial -n InitialSetupMigration", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/link-modules/package.json b/packages/modules/link-modules/package.json index 14c6368565..dcd022ad73 100644 --- a/packages/modules/link-modules/package.json +++ b/packages/modules/link-modules/package.json @@ -29,7 +29,7 @@ "prepare": "cross-env NODE_ENV=production yarn run build", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts" }, "devDependencies": { diff --git a/packages/modules/locking/package.json b/packages/modules/locking/package.json index 50c2c6753b..826c9f7e15 100644 --- a/packages/modules/locking/package.json +++ b/packages/modules/locking/package.json @@ -24,7 +24,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src/", + "test": "jest --passWithNoTests --bail --forceExit -- src/", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial -n InitialSetupMigration", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/notification/package.json b/packages/modules/notification/package.json index 179a14bc58..c8570fc257 100644 --- a/packages/modules/notification/package.json +++ b/packages/modules/notification/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit --passWithNoTests -- src", + "test": "jest --bail --forceExit --passWithNoTests -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial -n InitialSetupMigration", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/order/package.json b/packages/modules/order/package.json index dd74029a5c..bacfaae495 100644 --- a/packages/modules/order/package.json +++ b/packages/modules/order/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/payment/package.json b/packages/modules/payment/package.json index 0fb2d0200b..8524ad16eb 100644 --- a/packages/modules/payment/package.json +++ b/packages/modules/payment/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --passWithNoTests --forceExit -- src", + "test": "jest --bail --passWithNoTests --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/pricing/package.json b/packages/modules/pricing/package.json index 7b6f159860..f786279400 100644 --- a/packages/modules/pricing/package.json +++ b/packages/modules/pricing/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/product/package.json b/packages/modules/product/package.json index 9baaa221f1..42446c6eac 100644 --- a/packages/modules/product/package.json +++ b/packages/modules/product/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --bail --forceExit -- integration-tests/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/promotion/package.json b/packages/modules/promotion/package.json index 34ef9addd2..ed74172b0c 100644 --- a/packages/modules/promotion/package.json +++ b/packages/modules/promotion/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/region/package.json b/packages/modules/region/package.json index ac1e9b4305..e736a949f6 100644 --- a/packages/modules/region/package.json +++ b/packages/modules/region/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/sales-channel/package.json b/packages/modules/sales-channel/package.json index dffc51ce6c..d32c01e4a1 100644 --- a/packages/modules/sales-channel/package.json +++ b/packages/modules/sales-channel/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/settings/package.json b/packages/modules/settings/package.json index 5306615c1a..f2870f3049 100644 --- a/packages/modules/settings/package.json +++ b/packages/modules/settings/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/stock-location/package.json b/packages/modules/stock-location/package.json index e28fcd6131..956e0331f6 100644 --- a/packages/modules/stock-location/package.json +++ b/packages/modules/stock-location/package.json @@ -48,7 +48,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial -n InitialSetupMigration", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/store/package.json b/packages/modules/store/package.json index 83e60bffe3..74322e7f41 100644 --- a/packages/modules/store/package.json +++ b/packages/modules/store/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/tax/package.json b/packages/modules/tax/package.json index 91e33f7811..c386a784a6 100644 --- a/packages/modules/tax/package.json +++ b/packages/modules/tax/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts", + "test": "jest --bail --forceExit -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.spec.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/user/package.json b/packages/modules/user/package.json index c8082b0d5f..aa3c28395e 100644 --- a/packages/modules/user/package.json +++ b/packages/modules/user/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --runInBand --passWithNoTests --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/workflow-engine-inmemory/package.json b/packages/modules/workflow-engine-inmemory/package.json index 203e2bf38b..ea063010ad 100644 --- a/packages/modules/workflow-engine-inmemory/package.json +++ b/packages/modules/workflow-engine-inmemory/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create", diff --git a/packages/modules/workflow-engine-redis/package.json b/packages/modules/workflow-engine-redis/package.json index 0e50c73195..5625ad22ed 100644 --- a/packages/modules/workflow-engine-redis/package.json +++ b/packages/modules/workflow-engine-redis/package.json @@ -28,7 +28,7 @@ "watch:test": "tsc --build tsconfig.spec.json --watch", "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json", "build": "rimraf dist && tsc --build && npm run resolve:aliases", - "test": "jest --passWithNoTests --runInBand --bail --forceExit -- src", + "test": "jest --passWithNoTests --bail --forceExit -- src", "test:integration": "jest --forceExit -- integration-tests/**/__tests__/*.ts", "migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create --initial", "migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts medusa-mikro-orm migration:create",