Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 202dc38

Browse files
Disabled watch mode for tests
This way, `yarn test:all` works locally as well. Also removed old test commands from `core`, as there's no jest and no tests.
1 parent acf71d1 commit 202dc38

File tree

4 files changed

+11
-17
lines changed

4 files changed

+11
-17
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"build:clean": "yarn workspaces foreach run clean:build",
3131
"start:dev:core": "yarn workspace @1kv/core run start:dev",
3232
"start:js:core": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/core run js:start",
33-
"test:core": "yarn workspace @1kv/core run test",
3433
"test:common:int": "yarn workspace @1kv/common run test:int",
3534
"test:common:unit": "yarn workspace @1kv/common run test:unit",
3635
"test:common:unit:ci": "circleci local execute CommonUnitTests",

packages/common/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"clean": "../../node_modules/.bin/rimraf ./build tsconfig.tsbuildinfo combined.log",
1313
"clean:build": "yarn clean && yarn build",
1414
"writeCandidatesFile": "../../node_modules/.bin/esbuild src/scripts/writeCandidatesFile.ts --platform=node --bundle | node && yarn lint:fix",
15-
"test:unit": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.unit.config.mts --no-file-parallelism --coverage",
16-
"test:unit:silent": "SKIP_MD5=true LOG_LEVEL=warn ../../node_modules/.bin/vitest --config vitest.unit.config.mts --no-file-parallelism --coverage",
17-
"test:int": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.int.config.mts --no-file-parallelism --coverage",
18-
"test:int:silent": "SKIP_MD5=true LOG_LEVEL=warn ../../node_modules/.bin/vitest --config vitest.int.config.mts --no-file-parallelism --coverage",
19-
"test:chaindata:int": " ../../node_modules/.bin/vitest chaindata.int.test.ts -c vitest.int.config.mts --coverage",
20-
"test:apihandler:int": " ../../node_modules/.bin/vitest ApiHandler.int.test.ts -c vitest.int.config.mts --coverage",
21-
"test:nominator:int": "../../node_modules/.bin/vitest Nominator.int.test.ts -c vitest.int.config.mts --coverage",
22-
"test:scorekeeper:int": "../../node_modules/.bin/vitest scorekeeper.int.test.ts NumNominations.int.test.ts -c vitest.int.config.mts --coverage",
15+
"test:unit": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.unit.config.mts --run --no-file-parallelism --coverage",
16+
"test:unit:silent": "SKIP_MD5=true LOG_LEVEL=warn ../../node_modules/.bin/vitest --config vitest.unit.config.mts --run --no-file-parallelism --coverage",
17+
"test:int": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.int.config.mts --run --no-file-parallelism --coverage",
18+
"test:int:silent": "SKIP_MD5=true LOG_LEVEL=warn ../../node_modules/.bin/vitest --config vitest.int.config.mts --run --no-file-parallelism --coverage",
19+
"test:chaindata:int": " ../../node_modules/.bin/vitest chaindata.int.test.ts -c vitest.int.config.mts --coverage --run",
20+
"test:apihandler:int": " ../../node_modules/.bin/vitest ApiHandler.int.test.ts -c vitest.int.config.mts --coverage --run",
21+
"test:nominator:int": "../../node_modules/.bin/vitest Nominator.int.test.ts -c vitest.int.config.mts --coverage --run",
22+
"test:scorekeeper:int": "../../node_modules/.bin/vitest scorekeeper.int.test.ts NumNominations.int.test.ts -c vitest.int.config.mts --coverage --run",
2323
"test": "yarn test:unit && yarn test:int",
2424
"ci:checkCandidatesFile": "../../node_modules/.bin/ts-node src/scripts/ci/checkCandidatesFile.ts"
2525
},

packages/core/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
"start:dev": "NODE_OPTIONS='--max-old-space-size=8096' ts-node src/index.ts start",
1818
"watch": "npx nodemon --watch src -x \"yarn start:dev\"",
1919
"js:start": "NODE_OPTIONS='--max-old-space-size=10096' node build/index.js start",
20-
"test": "yarn test:unit && yarn test:int",
21-
"test:unit": "jest --config=jest.unit.config.js --verbose",
22-
"test:int": "jest --config=jest.int.config.js --verbose",
23-
"test:watch": "jest --watch",
24-
"test:candidates": "ts-node test/validateCandidates.ts",
2520
"writeMatrix": "ts-node test/candidatesMatrix.ts"
2621
},
2722
"author": "Web3 Foundation <[email protected]>",

packages/telemetry/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"start:watch": "NODE_OPTIONS='--max-old-space-size=6096' nodemon --watch build --exec node build/run.js",
1616
"start:dev": "concurrently \"tsc -w\" \"yarn start:watch\"",
1717
"js:start": "NODE_OPTIONS='--max-old-space-size=6096' node build/run.js start",
18-
"test": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.int.config.mts --no-file-parallelism",
19-
"test:int": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.int.config.mts --no-file-parallelism",
20-
"test:int:silent": "SKIP_MD5=true LOG_LEVEL=warn ../../node_modules/.bin/vitest --config vitest.int.config.mts --no-file-parallelism"
18+
"test": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.int.config.mts --run --no-file-parallelism",
19+
"test:int": "SKIP_MD5=true LOG_LEVEL=info ../../node_modules/.bin/vitest --config vitest.int.config.mts --run --no-file-parallelism",
20+
"test:int:silent": "SKIP_MD5=true LOG_LEVEL=warn ../../node_modules/.bin/vitest --config vitest.int.config.mts --run --no-file-parallelism"
2121
},
2222
"author": "Web3 Foundation <[email protected]>",
2323
"license": "GPL-3.0",

0 commit comments

Comments
 (0)