Skip to content

Conversation

@goloroden
Copy link

Summary

  • Adds generic Scenario<TState> and ThenResult classes to @nimbus/eventsourcingdb for writing Given/When/Then style tests for event-sourced command handlers
  • Adds first domain tests for the user aggregate (invite user, accept invitation, error cases)
  • Includes domain-specific test helpers (builder functions for commands and events)

Test plan

  • deno fmt --check passes
  • deno lint passes
  • deno test -A — all 38 tests pass

…ingdb

Introduce a generic Scenario and ThenResult infrastructure for
writing Given/When/Then style tests for event-sourced command
handlers, and add first domain tests for the user aggregate.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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