π Description
The zk/sdk/ package needs a Jest setup so tests can run in CI. Currently there is no test runner configured for the SDK layer.
β
Requirements
- Add
jest.config.ts to zk/sdk/
- Add
"test": "jest" script to zk/sdk/package.json
- Add a new GitHub Actions workflow
.github/workflows/sdk_tests.yml that:
- Runs on push to
main and on PRs
- Installs deps in
zk/sdk/
- Runs
npm test
- Add a smoke test
src/__tests__/smoke.test.ts that imports the index
π― Acceptance Criteria
π Expected files to change/create
zk/sdk/jest.config.ts
zk/sdk/package.json (scripts)
.github/workflows/sdk_tests.yml
zk/sdk/src/__tests__/smoke.test.ts
π¬ Commit: chore(sdk): add Jest configuration and CI workflow for SDK unit tests
πΏ Branch: chore/sdk-jest-ci | Priority: MEDIUM | Difficulty: β one-coffee
Type: Chore Β· Priority: MEDIUM Β· Difficulty: easy Β· Track: SDK
π Description
The
zk/sdk/package needs a Jest setup so tests can run in CI. Currently there is no test runner configured for the SDK layer.β Requirements
jest.config.tstozk/sdk/"test": "jest"script tozk/sdk/package.json.github/workflows/sdk_tests.ymlthat:mainand on PRszk/sdk/npm testsrc/__tests__/smoke.test.tsthat imports the indexπ― Acceptance Criteria
npm testinzk/sdk/runs without errorsdk_tests.ymlappears in GitHub Actionsπ Expected files to change/create
zk/sdk/jest.config.tszk/sdk/package.json(scripts).github/workflows/sdk_tests.ymlzk/sdk/src/__tests__/smoke.test.tsType: Chore Β· Priority: MEDIUM Β· Difficulty: easy Β· Track: SDK