Skip to content

test(vault-registry): add lifecycle event payload regression tests - #767

Merged
manoahLinks merged 1 commit into
mind-vault-1:mainfrom
coderolisa:add-lifecycle-event-tests
Aug 31, 2026
Merged

test(vault-registry): add lifecycle event payload regression tests#767
manoahLinks merged 1 commit into
mind-vault-1:mainfrom
coderolisa:add-lifecycle-event-tests

Conversation

@coderolisa

Copy link
Copy Markdown
Contributor

closes #623

Add focused regression tests that verify exact event payloads for the set_listed lifecycle transition (Listed ↔ Delisted). These tests lock down the current behavior without changing production code.

Tests added:

  • lifecycle_event_set_listed_delist_payload: verifies (true, false) payload when transitioning Listed → Delisted
  • lifecycle_event_set_listed_relist_payload: verifies (false, true) payload when transitioning Delisted → Listed

Both tests verify exact event topic, resource ID, and payload structure.

Related to: Add lifecycle transition event payload tests
Scope: contract/contracts/vault-registry/

Checklist

  • PR title follows Conventional Commits (feat:, fix:, chore:, etc.)
  • Build passes (pnpm build:server / pnpm --filter @mindvault/web build)
  • Tests pass (pnpm test)
  • Contract changes tested (pnpm contract:test)
  • No secrets committed (.env is gitignored; use .env.example for placeholders)
  • Docs/comments updated if behaviour changed

Add focused regression tests that verify exact event payloads for the
set_listed lifecycle transition (Listed ↔ Delisted). These tests lock
down the current behavior without changing production code.

Tests added:
- lifecycle_event_set_listed_delist_payload: verifies (true, false)
  payload when transitioning Listed → Delisted
- lifecycle_event_set_listed_relist_payload: verifies (false, true)
  payload when transitioning Delisted → Listed

Both tests verify exact event topic, resource ID, and payload structure.

Related to: Add lifecycle transition event payload tests
Scope: contract/contracts/vault-registry/
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@coderolisa 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

@manoahLinks
manoahLinks merged commit 58adbf4 into mind-vault-1:main Aug 31, 2026
6 of 9 checks 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.

[Contract] Add lifecycle transition event payload tests

2 participants