Skip to content

Add sdk-lite API contract tests#59

Open
MyouzzZ wants to merge 1 commit into
Adamantine-guild:mainfrom
MyouzzZ:codex/sdk-lite-api-contract-tests
Open

Add sdk-lite API contract tests#59
MyouzzZ wants to merge 1 commit into
Adamantine-guild:mainfrom
MyouzzZ:codex/sdk-lite-api-contract-tests

Conversation

@MyouzzZ

@MyouzzZ MyouzzZ commented Jun 25, 2026

Copy link
Copy Markdown

Closes #48

Summary

  • add a shared API contract fixture for the current access API endpoints
  • expand sdk-lite to cover membership lookup, member profile lookup, access checks, and community member listing
  • add sdk-lite contract tests that assert request paths, methods, payloads, and parsed responses against the shared fixture
  • make access-api route integration tests consume the same fixture so route samples and sdk-lite expectations cannot silently drift
  • fix existing local validation blockers in the access-api Prisma schema and seed flow so affected tests can run

Validation

  • corepack pnpm --filter @guildpass/sdk-lite test (16 tests)
  • corepack pnpm --filter @guildpass/sdk-lite build
  • corepack pnpm --filter @guildpass/shared-types typecheck
  • corepack pnpm --filter access-api prisma:generate
  • corepack pnpm --filter access-api test (14 tests)

Notes

  • corepack pnpm test still fails in the pre-existing @guildpass/policy-engine workspace due unresolved @guildpass/shared-types resolution/test-helper errors outside this PR touched area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API contract tests for sdk-lite

1 participant