Skip to content

Test billing engine lifecycle and totals - #21

Merged
solomon2773 merged 1 commit into
mainfrom
tests/billing-engine
Aug 27, 2026
Merged

solomon2773 merged 1 commit into
mainfrom
tests/billing-engine

Conversation

@solomon2773

Copy link
Copy Markdown
Owner

Summary

  • add Vitest, coverage, and PostgreSQL Testcontainers infrastructure
  • extract deterministic billing policy for totals, coupon boundaries, currency conversion, and proration
  • cover renewal horizons and service lifecycle cutoffs against a real PostgreSQL schema
  • make invoice payment claiming race-safe and run unit/integration suites in CI

Validation

  • 12 unit tests
  • 4 PostgreSQL integration tests
  • strict TypeScript check
  • production Next.js build

Closes #5

@solomon2773
solomon2773 merged commit e2683c5 into main Aug 27, 2026
4 checks passed
@solomon2773
solomon2773 deleted the tests/billing-engine branch August 27, 2026 21:17
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.

Test suite for the billing engine

1 participant