Skip to content

test: add integration test for display name length validation on crea… - #774

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
aishagbadamosi:main
Aug 25, 2026
Merged

test: add integration test for display name length validation on crea…#774
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
aishagbadamosi:main

Conversation

@aishagbadamosi

Copy link
Copy Markdown
Contributor

…tor registration

Summary

Adds an integration test covering the creator registration endpoint's display name length boundary — specifically that names exceeding 50 characters are rejected before any database write occurs.

Changes

  • src/modules/creators/creator-registration-display-name-length.integration.test.ts — new file

Test cases

Scenario Expected
51-character display name 422 + display_name_too_long detail

All 3 tests pass locally.

Notes

The handler under test is a self-contained inline placeholder that mirrors the registration contract from the unmerged PR. Once that PR is merged, replace the inline handler with the production import and remove the inline mock setup — a comment in the file marks the exact location.

Related

Closes #766

Summary

Testing

  • pnpm lint
  • pnpm build
  • pnpm exec prisma generate when schema or generated types changed

Checklist

  • Linked issue or backlog item
  • No secrets or live credentials added
  • Docs updated if setup or env changed
  • Change is scoped to one problem

…tor registration

## Summary

Adds an integration test covering the creator registration endpoint's
display name length boundary — specifically that names exceeding 50
characters are rejected before any database write occurs.

## Changes

- `src/modules/creators/creator-registration-display-name-length.integration.test.ts` — new file

## Test cases

| Scenario | Expected |
|---|---|
| 51-character display name | 422 + `display_name_too_long` detail |
| No DB record written on failure | `findFirst` and `create` never called |
| Exactly 50-character display name | 201 |

All 3 tests pass locally.

## Notes

The handler under test is a self-contained inline placeholder that mirrors
the registration contract from the unmerged PR. Once that PR is merged,
replace the inline handler with the production import and remove the
inline mock setup — a comment in the file marks the exact location.

## Related

Closes accesslayerorg#766
@drips-wave

drips-wave Bot commented Aug 25, 2026

Copy link
Copy Markdown

@aishagbadamosi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093
Chucks1093 merged commit 67ae176 into accesslayerorg:main Aug 25, 2026
1 check passed
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 integration test for the creator registration endpoint rejecting a display name that exceeds 50 characters

2 participants