Adds a basic chronikMock to support mocking of script().utxos() API calls in D14417. This chronikMock has been stripped back to the bare essentials for script and utxo endpoints.
Details
Details
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- chronikMock
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 24871 Build 49330: Build Diff ecash-coinselect Build 49329: arc lint + arc unit
Event Timeline
Comment Actions
Since
- we are now using chronik mocks (that are all substantially identical to each other, plus or minus some features that are not used) across a number of apps in the monorepo
- Other mods to chronik-client higher priority than this unit testing support tool as part of that npm module
Let's get a bridge solution.
Please
- Create a mock-chronik-client directory in apps and populate it with the most extensive version of mocked chronik client we have (currently exists in alias-server, examples, and ecash-herald)
- Change the imports in existing repos to point to this new common monorepo mock-chronik-client