Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

feat: add unit tests for @worldcoin/idkit-core#397

Open
0xpinara wants to merge 1 commit into
worldcoin:mainfrom
0xpinara:feat/add-core-unit-tests
Open

feat: add unit tests for @worldcoin/idkit-core#397
0xpinara wants to merge 1 commit into
worldcoin:mainfrom
0xpinara:feat/add-core-unit-tests

Conversation

@0xpinara
Copy link
Copy Markdown

Summary

  • Set up Vitest as the test framework for packages/core
  • Added tests for validate_bridge_url (10 tests)
  • Added tests for buffer utils and credential type mappings (13 tests)
  • Added tests for hashing functions: hashToField, packAndEncode, solidityEncode, generateSignal, encodeAction (14 tests)
  • Added tests for all enum types and their values (10 tests)
  • Added test task to turbo.json for monorepo-wide test runs

Run with: cd packages/core && pnpm test

Set up Vitest and added tests for validation, hashing, utils, and types.
Covers ~50 test cases for all pure functions in packages/core.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant