Skip to content

Commit 584d68e

Browse files
authored
fix: update test command in package.json files (#2706)
1 parent 703cb6a commit 584d68e

File tree

13 files changed

+56
-15
lines changed

13 files changed

+56
-15
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ jobs:
7979
- name: Upload coverage reports to Codecov
8080
uses: codecov/codecov-action@v4
8181
with:
82-
directory: ./packages
82+
directory: packages/
8383
flags: packages
84+
verbose: true
8485

8586
e2e:
8687
timeout-minutes: 15

.github/workflows/CI_legacy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ jobs:
7373
- name: Upload coverage reports to Codecov
7474
uses: codecov/codecov-action@v4
7575
with:
76-
directory: ./legacy_packages
76+
directory: legacy_packages/
7777
flags: legacy_packages
78+
verbose: true
7879

7980
e2e:
8081
timeout-minutes: 15

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ playwright-report/
2020
.env/
2121

2222
# Artifacts
23-
legacy_packages/cli/artifacts/
23+
legacy_packages/cli/artifacts/
24+
25+
# codecov binary
26+
codecov

codecov.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
patch:
7+
packages:
8+
target: auto
9+
flags:
10+
- packages
11+
legacy_packages:
12+
target: auto
13+
flags:
14+
- legacy_packages
15+
16+
17+
github_checks:
18+
annotations: true
19+
20+
flag_management:
21+
default_rules:
22+
carryforward: true
23+
24+
comment:
25+
layout: "newheader, diff, flags, files"
26+
require_changes: false # if true: only post the comment if coverage changes
27+
require_base: false # [yes :: must have a base report to post]
28+
require_head: true # [yes :: must have a head report to post]
29+
show_carryforward_flags: true
30+
hide_comment_details: true #collapse all the "detailed info" for the PR comment

legacy_packages/auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"lint": "eslint src/",
6262
"fix": "eslint src/ --fix",
6363
"clean": "rm -rf dist/ && rm -rf node_modules/",
64-
"test": "vitest",
64+
"test": "vitest run",
6565
"push": "yalc push"
6666
},
6767
"preconstruct": {

legacy_packages/chains/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"db:sync": "bun scripts/sync-db.ts",
3030
"build": "tsc && preconstruct build",
3131
"push": "yalc push",
32-
"test": "vitest"
32+
"test": "vitest run"
3333
},
3434
"engines": {
3535
"node": ">=18"

legacy_packages/contracts-js/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,15 @@
440440
"peerDependencies": {
441441
"ethers": "^5"
442442
},
443-
"files": ["dist/", "factories/"],
443+
"files": [
444+
"dist/",
445+
"factories/"
446+
],
444447
"preconstruct": {
445-
"entrypoints": ["index.ts", "./factories/TW*.ts"],
448+
"entrypoints": [
449+
"index.ts",
450+
"./factories/TW*.ts"
451+
],
446452
"exports": {
447453
"extra": {}
448454
}
@@ -455,4 +461,4 @@
455461
"build": "bun ./scripts/revert-exports.ts && pnpm typechain && tsc && pnpm preconstruct build && pnpm extract-abi",
456462
"push": "yalc push"
457463
}
458-
}
464+
}

legacy_packages/crypto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"clean": "rm -rf dist/",
4747
"build": "tsc && preconstruct build",
4848
"push": "yalc push",
49-
"test": "vitest",
49+
"test": "vitest run",
5050
"benchmark:aes-encrypt": "bun benchmark/aes-encrypt.ts",
5151
"benchmark:aes-decrypt": "bun benchmark/aes-decrypt.ts",
5252
"benchmark:sha256": "bun benchmark/sha256.ts",

legacy_packages/merkletree/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"clean": "rm -rf dist/",
4444
"build": "tsc && preconstruct build",
4545
"push": "yalc push",
46-
"test": "vitest"
46+
"test": "vitest run"
4747
},
4848
"engines": {
4949
"node": ">=18"

legacy_packages/storage/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"fix": "eslint src/ --fix",
2121
"clean": "rm -rf dist/",
2222
"build": "tsc && preconstruct build",
23-
"test": "vitest",
23+
"test": "vitest run",
2424
"push": "yalc push",
2525
"typedoc": "node scripts/typedoc.mjs"
2626
},

legacy_packages/wallets/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@
612612
"preconstruct:fix": "preconstruct fix",
613613
"push": "yalc push",
614614
"typedoc": "node scripts/typedoc.mjs",
615-
"test": "vitest"
615+
"test": "vitest run"
616616
},
617617
"engines": {
618618
"node": ">=18"

packages/service-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
"clean": "rm -rf dist/",
4949
"build": "tsc && preconstruct build",
5050
"push": "yalc push",
51-
"test": "vitest"
51+
"test": "vitest run"
5252
}
5353
}

turbo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@
7878
"outputs": ["src/version.ts"]
7979
},
8080
"test": {
81-
"outputs": ["codecov/**"],
81+
"outputs": ["coverage/**"],
8282
"inputs": ["src/**", "test/**"],
8383
"dependsOn": ["^build"],
8484
"env": ["TW_SECRET_KEY", "CI"]
8585
},
8686
"test:legacy": {
87-
"outputs": ["codecov/**"],
87+
"outputs": ["coverage/**"],
8888
"inputs": ["src/**", "test/**"],
8989
"dependsOn": ["^build"],
9090
"env": ["TW_SECRET_KEY", "CI"]

0 commit comments

Comments
 (0)