Skip to content

Commit fa86469

Browse files
committed
Add separate JS client unit test
1 parent 2a77f25 commit fa86469

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/workflows/ci-test.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,34 @@ jobs:
5959
- name: Check SGX buildability
6060
run: cargo check --locked --release --target x86_64-fortanix-unknown-sgx
6161

62+
test-client-js:
63+
name: test-client-js
64+
runs-on: ubuntu-latest
65+
defaults:
66+
run:
67+
working-directory: ./clients/js
68+
steps:
69+
- name: Checkout code
70+
uses: actions/checkout@v4
71+
72+
- name: Install Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: 18
76+
77+
- uses: pnpm/action-setup@v4
78+
name: Install pnpm
79+
id: pnpm-install
80+
with:
81+
version: 8
82+
run_install: false
83+
84+
- name: Install dependencies
85+
run: pnpm install
86+
87+
- name: Test JS client
88+
run: pnpm test:unit
89+
6290
test-client-go:
6391
name: test-client-go
6492
runs-on: ubuntu-latest

.github/workflows/contracts-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
log-output: true
7272
log-output-if: true
7373
working-directory: clients/js
74-
- name: test-client-js
74+
- name: Test JS client
7575
run: make -C clients/js test lint
7676
- name: Build & Test integrations
7777
run: make -C integrations

clients/js/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"build:esm": "tsc -p ./tsconfig.esm.json",
3939
"build:cjs": "tsc -p ./tsconfig.cjs.json && node scripts/rename-cjs",
4040
"test": "jest --coverage",
41+
"test:unit": "jest --coverage --testPathIgnorePatterns calldatapublickey.spec.ts",
4142
"prepublishOnly": "npm run build",
4243
"proxy": "node --loader ts-node/esm scripts/proxy.ts"
4344
},

0 commit comments

Comments
 (0)