HomePhabricator

[ecash-lib] Add `TestRunner`

Description

[ecash-lib] Add TestRunner

Summary:
Currently, the integration tests setup is copy-pasted between each test. In this diff, TestRunner is added so we can abstract this setup away so tests can focus on the actual test.

Previous attempts tried to add a ecash-test-utils package with this class, however, since it depended on both chronik-client and ecash-lib (which in turn depended on ecash-test-utils), it was very difficult to resolve this circular dependency, so this approach has been dropped.

Test Plan: npm run test && npm run integration-tests && npm run build

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D16064

Details

Provenance
tobias_ruckAuthored on Apr 29 2024, 22:32
tobias_ruckPushed on Apr 29 2024, 23:38
Reviewer
Restricted Project
Differential Revision
D16064: [ecash-lib] Add `TestRunner`
Parents
rABC55c9ab90fe37: [ecash-lib] Fix: Built JS files are in `dist/src`, not `dist`
Branches
Unknown
Tags
Unknown