Skip to content

Commit 586fb81

Browse files
authored
Merge pull request #23 from hypercerts-org/develop
Push to PRD
2 parents 9148066 + 76367c7 commit 586fb81

File tree

10 files changed

+1295
-1958
lines changed

10 files changed

+1295
-1958
lines changed

.github/workflows/create-prerelease-sdk.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ jobs:
3131
- name: Install dependencies
3232
run: pnpm install
3333

34-
- name: Run tests
35-
run: pnpm test
34+
- name: 'Run unit tests'
35+
run: npx vitest --coverage.enabled true
36+
37+
- name: 'Report Coverage'
38+
# Set if: always() to also generate the report if tests are failing
39+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
40+
if: always()
41+
uses: davelosert/vitest-coverage-report-action@v2
3642

3743
semantic-release:
3844
needs: build-and-test

.github/workflows/create-release-sdk.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ jobs:
3131
- name: Install dependencies
3232
run: pnpm install
3333

34-
- name: Run tests
35-
run: pnpm test
34+
- name: 'Run unit tests'
35+
run: npx vitest --coverage.enabled true
36+
37+
- name: 'Report Coverage'
38+
# Set if: always() to also generate the report if tests are failing
39+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
40+
if: always()
41+
uses: davelosert/vitest-coverage-report-action@v2
3642

3743
semantic-release:
3844
needs: build-and-test

.github/workflows/dryrun-release-ci-sdk.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@ jobs:
2929
- name: Install dependencies
3030
run: pnpm install
3131

32-
- name: Run tests
33-
run: pnpm test
32+
- name: 'Run unit tests'
33+
run: npx vitest --coverage.enabled true
34+
35+
- name: 'Report Coverage'
36+
# Set if: always() to also generate the report if tests are failing
37+
# Only works if you set `reportOnFailure: true` in your vite config as specified above
38+
if: always()
39+
uses: davelosert/vitest-coverage-report-action@v2
3440

3541
semantic-release:
3642
needs: build-and-test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ yarn-debug.log*
1919
yarn-error.log*
2020
.DS_Store
2121
/.idea
22-
stats.html
22+
stats.html
23+
coverage/

package.json

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,50 +22,51 @@
2222
],
2323
"dependencies": {
2424
"@graphql-typed-document-node/core": "^3.2.0",
25-
"@hypercerts-org/contracts": "2.0.0-alpha.11",
25+
"@hypercerts-org/contracts": "2.0.0-alpha.12",
2626
"@openzeppelin/merkle-tree": "^1.0.7",
27-
"@swc/core": "^1.6.3",
27+
"@swc/core": "^1.10.9",
2828
"ajv": "^8.11.2",
29-
"axios": "^1.7.7",
30-
"dotenv": "^16.0.3",
29+
"axios": "^1.7.9",
30+
"dotenv": "^16.4.7",
3131
"rollup-plugin-swc3": "^0.11.2",
32-
"viem": "^2.21.35",
33-
"zod": "^3.23.8"
32+
"viem": "^2.22.11",
33+
"zod": "^3.24.1"
3434
},
3535
"devDependencies": {
36-
"@commitlint/cli": "^19.4.0",
37-
"@commitlint/config-conventional": "^19.2.2",
38-
"@eslint/js": "^9.9.0",
36+
"@commitlint/cli": "^19.6.1",
37+
"@commitlint/config-conventional": "^19.6.0",
38+
"@eslint/js": "^9.18.0",
3939
"@faker-js/faker": "^8.3.1",
4040
"@rollup/plugin-commonjs": "^24.0.1",
4141
"@rollup/plugin-json": "^6.0.0",
42-
"@rollup/plugin-node-resolve": "^15.0.1",
43-
"@types/chai": "^4.3.11",
42+
"@rollup/plugin-node-resolve": "^15.3.1",
43+
"@types/chai": "^4.3.20",
4444
"@types/chai-subset": "^1.3.5",
45-
"@types/node": "^20.12.2",
45+
"@types/node": "^20.17.14",
4646
"@types/sinon": "^17.0.2",
4747
"@viem/anvil": "^0.0.6",
48+
"@vitest/coverage-v8": "^3.0.3",
4849
"chai": "^4.3.7",
4950
"chai-assertions-count": "^1.0.2",
5051
"chai-subset": "^1.6.0",
5152
"esbuild": "^0.19.8",
52-
"eslint": "^9.9.0",
53+
"eslint": "^9.18.0",
5354
"eslint-config-prettier": "^9.1.0",
54-
"globals": "^15.9.0",
55-
"husky": "^9.1.5",
55+
"globals": "^15.14.0",
56+
"husky": "^9.1.7",
5657
"json-schema-to-typescript": "^13.1.1",
57-
"lint-staged": "^15.2.9",
58+
"lint-staged": "^15.4.1",
5859
"orval": "^6.30.2",
5960
"prettier": "3.3.3",
60-
"rollup": "^3.29.4",
61+
"rollup": "^3.29.5",
6162
"rollup-plugin-auto-external": "^2.0.0",
6263
"rollup-plugin-dts": "^6.1.1",
6364
"rollup-plugin-esbuild": "^6.1.0",
6465
"rollup-plugin-node-polyfills": "^0.2.1",
6566
"sinon": "^17.0.1",
6667
"typescript": "5.4.5",
67-
"typescript-eslint": "^8.2.0",
68-
"vitest": "^1.6.0"
68+
"typescript-eslint": "^8.21.0",
69+
"vitest": "^3.0.3"
6970
},
7071
"scripts": {
7172
"build": "pnpm types:json && pnpm codegen:api && rollup -c",
@@ -76,6 +77,7 @@
7677
"update:submodules": "git submodule update --init --recursive",
7778
"test": "vitest run",
7879
"test:watch": "vitest --watch",
80+
"test:coverage": "vitest --coverage",
7981
"types:json": "pnpm json2ts -i './src/resources/schema/' -o 'src/types' --cwd './src/resources/schema'",
8082
"prepare": "husky",
8183
"commitlint": "commitlint --config commitlintrc.ts --edit"

0 commit comments

Comments
 (0)