Skip to content

Member profile: Added tests and mock for member profile page to test opt out feature - #124

Open
Allimonae wants to merge 1 commit into
mainfrom
test-opt-out
Open

Allimonae wants to merge 1 commit into
mainfrom
test-opt-out

Conversation

@Allimonae

@Allimonae Allimonae commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

What changed?

  • MSW mock handlers for the member profile and self-service status endpoint are extracted into member-profile.mock.ts and registered in the shared test server.
  • MemberControllerTest covers the new endpoint's happy paths, the body-level member ID being ignored in favor of the session principal, missing active field validation, and member-not-found handling.
  • MemberServiceTest and MemberSqlRepoTest cover deactivation reason persistence, null-on-reactivation clearing, and the absence of a reason on newly created members.
  • Fixed a bug where deactivation payload was not passing deactivation reason

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@Allimonae
Allimonae marked this pull request as ready for review October 4, 2026 16:44
@Allimonae
Allimonae requested a review from a team October 4, 2026 16:44
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

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.

1 participant