test: add experimental controllable mint package - #333
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #333 +/- ##
=======================================
Coverage 88.51% 88.52%
=======================================
Files 133 133
Lines 18415 18415
=======================================
+ Hits 16300 16301 +1
+ Misses 2115 2114 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This pull request adds an experimental, repository-local test mint package that runs a real CDK mint while keeping BOLT11 payment settlement under test control.
Problem
Coco's mocked unit tests provide control but not protocol realism, while the current fake-wallet integration setup automatically settles payments and cannot hold or advance individual payments from the test. That leaves state transitions such as a pending melt difficult to exercise deterministically without real money.
Summary
@cashu/coco-test-mintpackage, explicitly marked experimental and outside compatibility guaranteesv0.17.0-rc.0mintd with a controllable in-memory gRPC payment processorCompatibility risk is limited because the package is private, versioned
0.0.0, and documented as experimental. It downloads a checksum-verified Linux x64/arm64 CDK binary at runtime and requires network access.Verification
bun run test-mint:smokebun run buildbun run typecheckbunx prettier --check package.json packages/test-mintgit diff --checkChangeset