Skip to content

[Task][SDK] Add Jest configuration and CI workflow for SDK unit testsΒ #200

@ryzen-xp

Description

@ryzen-xp

πŸ“ 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

  • npm test in zk/sdk/ runs without error
  • CI workflow sdk_tests.yml appears in GitHub Actions
  • Smoke test passes

πŸ“ 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

Metadata

Metadata

Assignees

Labels

SDKTaskcistellar waveThis issue listed on Drip stellar wave contest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions