Skip to content

Commit

Permalink
remove file parallelism in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rotorsoft committed Nov 14, 2024
1 parent 74043ef commit 6d0c9a7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions common_knowledge/Package-Scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,31 +299,31 @@ See `test-unit`.

### test-api

Definition: `NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run ./test/integration/api`
Definition: `NODE_ENV=test vitest --config ../../vite.config.ts run ./test/integration/api`

Description: Runs all tests in the /api subfolder of the /integration directory.

### test-integration

Definition: `NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run ./test/integration`
Definition: `NODE_ENV=test vitest --config ../../vite.config.ts run ./test/integration`

Description: Runs all tests in the /test/integration folder (includes API tests).

### test-devnet:evm

Definition: `NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run ./test/devnet/evm`
Definition: `NODE_ENV=test vitest --config ../../vite.config.ts run ./test/devnet/evm`

Description: Runs all tests in our `/devnet/evm` folder.

### test-devnet:cosmos

Definition: `NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run ./test/devnet/cosmos`
Definition: `NODE_ENV=test vitest --config ../../vite.config.ts run ./test/devnet/cosmos`

Description: Runs all tests in our `/devnet/cosmos` folder.

### test-select

Definition: `NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run`
Definition: `NODE_ENV=test vitest --config ../../vite.config.ts run`

Description: Append a path to run specific test files or folders.

Expand All @@ -335,7 +335,7 @@ Description: Tests all .spec files within the `./test/unit` sub-directory of tes

### test-select:watch

Definition: `NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false`
Definition: `NODE_ENV=test vitest --config ../../vite.config.ts`

Description: Watches for changes to any .spec files within the given path and automatically runs test when they are updated.

Expand Down
4 changes: 2 additions & 2 deletions libs/model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"build": "tsc -b ./tsconfig.build.json",
"clean": "rm -rf build && rm -rf coverage && find . -type f -name '*.tsbuildinfo' -exec rm {} +",
"check-types": "tsc --noEmit",
"test": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false --coverage run test",
"test-select": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run",
"test": "NODE_ENV=test vitest --config ../../vite.config.ts --coverage run test",
"test-select": "NODE_ENV=test vitest --config ../../vite.config.ts run",
"lint": "NODE_OPTIONS=\"--max-old-space-size=4096\" eslint -c ../../.eslintrc.cjs './src/**/*.{ts,tsx}'",
"lint-diff": "NODE_OPTIONS=\"--max-old-space-size=4096\" eslint -c ../../.eslintrc-diff.cjs './src/**/*.{ts,tsx}'"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/commonwealth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@
"start-message-relayer": "tsx ./server/workers/messageRelayer/messageRelayer.ts",
"stylelint": "stylelint client/styles/*",
"test": "pnpm test-unit",
"test-api": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false --coverage run ./test/integration/api",
"test-devnet:cosmos": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false --coverage run ./test/devnet/cosmos",
"test-devnet:evm": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false --coverage run ./test/devnet/evm",
"test-api": "NODE_ENV=test vitest --config ../../vite.config.ts --coverage run ./test/integration/api",
"test-devnet:cosmos": "NODE_ENV=test vitest --config ../../vite.config.ts --coverage run ./test/devnet/cosmos",
"test-devnet:evm": "NODE_ENV=test vitest --config ../../vite.config.ts --coverage run ./test/devnet/evm",
"test-e2e": "NODE_OPTIONS='--import tsx/esm' NODE_ENV=test TEST_ENV=playwright npx playwright test -c ./test/e2e/playwright.config.ts --workers 1 ./test/e2e/e2eRegular/*",
"test-e2e-mature": "NODE_OPTIONS='--import tsx/esm' NODE_ENV=test TEST_ENV=playwright npx playwright test -c ./test/e2e/playwright.config.ts --workers 1 ./test/e2e/mature/*",
"test-e2e-serial": "NODE_OPTIONS='--import tsx/esm' NODE_ENV=test TEST_ENV=playwright npx playwright test --workers 1 ./test/e2e/e2eSerial/*",
"test-integration": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false --coverage run ./test/integration",
"test-integration": "NODE_ENV=test vitest --config ../../vite.config.ts --coverage run ./test/integration",
"test-unit": "NODE_ENV=test FEATURE_FLAG_GROUP_CHECK_ENABLED=true vitest --config ../../vite.config.ts run test/unit",
"test-select": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false run",
"test-select:watch": "NODE_ENV=test vitest --config ../../vite.config.ts --fileParallelism=false",
"test-select": "NODE_ENV=test vitest --config ../../vite.config.ts run",
"test-select:watch": "NODE_ENV=test vitest --config ../../vite.config.ts",
"ts-exec": "tsx ",
"validate-external-api-version": "pnpm -F commonwealth ts-exec server/scripts/validate-external-api-versioning.ts $(pnpm info @commonxyz/api-client version)",
"vite": "wait-on http://localhost:3000/api/health && vite -c ./client/vite.config.ts --host",
Expand Down

0 comments on commit 6d0c9a7

Please sign in to comment.