[Cashtab] Only test staged files
Summary:
Cashtab is configured to test all files if the husky precommit hook is triggered. This hook can trigger by users editing outside of Cashtab.
This diff prevents such users from running all Cashtab unit tests. Instead, unit tests will only be run on changed Cashtab files (which would be none).
Coverage threshholds are dropped to arbitary low value of 1%, as CI requires a coverage threshhold. Unit tests may fail the previous 15% thresshold when taken in isolation.
Test Plan:
- Add //Test to line 118 of Send.js
- Run
git add . git commit --amend --no-edit
- Note that only Send.js related unit tests run
Reviewers: #bitcoin_abc, tobias_ruck
Reviewed By: #bitcoin_abc, tobias_ruck
Differential Revision: https://reviews.bitcoinabc.org/D11906