Skip to content

Commit

Permalink
fix: update test command in package.json files (thirdweb-dev#2706)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsdls authored Apr 7, 2024
1 parent 703cb6a commit 584d68e
Show file tree
Hide file tree
Showing 13 changed files with 56 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./packages
directory: packages/
flags: packages
verbose: true

e2e:
timeout-minutes: 15
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/CI_legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ jobs:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
directory: ./legacy_packages
directory: legacy_packages/
flags: legacy_packages
verbose: true

e2e:
timeout-minutes: 15
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ playwright-report/
.env/

# Artifacts
legacy_packages/cli/artifacts/
legacy_packages/cli/artifacts/

# codecov binary
codecov
30 changes: 30 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
coverage:
status:
project:
default:
target: auto
patch:
packages:
target: auto
flags:
- packages
legacy_packages:
target: auto
flags:
- legacy_packages


github_checks:
annotations: true

flag_management:
default_rules:
carryforward: true

comment:
layout: "newheader, diff, flags, files"
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [yes :: must have a base report to post]
require_head: true # [yes :: must have a head report to post]
show_carryforward_flags: true
hide_comment_details: true #collapse all the "detailed info" for the PR comment
2 changes: 1 addition & 1 deletion legacy_packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"lint": "eslint src/",
"fix": "eslint src/ --fix",
"clean": "rm -rf dist/ && rm -rf node_modules/",
"test": "vitest",
"test": "vitest run",
"push": "yalc push"
},
"preconstruct": {
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/chains/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"db:sync": "bun scripts/sync-db.ts",
"build": "tsc && preconstruct build",
"push": "yalc push",
"test": "vitest"
"test": "vitest run"
},
"engines": {
"node": ">=18"
Expand Down
12 changes: 9 additions & 3 deletions legacy_packages/contracts-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,15 @@
"peerDependencies": {
"ethers": "^5"
},
"files": ["dist/", "factories/"],
"files": [
"dist/",
"factories/"
],
"preconstruct": {
"entrypoints": ["index.ts", "./factories/TW*.ts"],
"entrypoints": [
"index.ts",
"./factories/TW*.ts"
],
"exports": {
"extra": {}
}
Expand All @@ -455,4 +461,4 @@
"build": "bun ./scripts/revert-exports.ts && pnpm typechain && tsc && pnpm preconstruct build && pnpm extract-abi",
"push": "yalc push"
}
}
}
2 changes: 1 addition & 1 deletion legacy_packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"clean": "rm -rf dist/",
"build": "tsc && preconstruct build",
"push": "yalc push",
"test": "vitest",
"test": "vitest run",
"benchmark:aes-encrypt": "bun benchmark/aes-encrypt.ts",
"benchmark:aes-decrypt": "bun benchmark/aes-decrypt.ts",
"benchmark:sha256": "bun benchmark/sha256.ts",
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/merkletree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"clean": "rm -rf dist/",
"build": "tsc && preconstruct build",
"push": "yalc push",
"test": "vitest"
"test": "vitest run"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fix": "eslint src/ --fix",
"clean": "rm -rf dist/",
"build": "tsc && preconstruct build",
"test": "vitest",
"test": "vitest run",
"push": "yalc push",
"typedoc": "node scripts/typedoc.mjs"
},
Expand Down
2 changes: 1 addition & 1 deletion legacy_packages/wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@
"preconstruct:fix": "preconstruct fix",
"push": "yalc push",
"typedoc": "node scripts/typedoc.mjs",
"test": "vitest"
"test": "vitest run"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion packages/service-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
"clean": "rm -rf dist/",
"build": "tsc && preconstruct build",
"push": "yalc push",
"test": "vitest"
"test": "vitest run"
}
}
4 changes: 2 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@
"outputs": ["src/version.ts"]
},
"test": {
"outputs": ["codecov/**"],
"outputs": ["coverage/**"],
"inputs": ["src/**", "test/**"],
"dependsOn": ["^build"],
"env": ["TW_SECRET_KEY", "CI"]
},
"test:legacy": {
"outputs": ["codecov/**"],
"outputs": ["coverage/**"],
"inputs": ["src/**", "test/**"],
"dependsOn": ["^build"],
"env": ["TW_SECRET_KEY", "CI"]
Expand Down

0 comments on commit 584d68e

Please sign in to comment.