Page MenuHomePhabricator

[Cashtab] Better helper function to clear localforage between tests
ClosedPublic

Authored by bytesofman on Feb 22 2024, 14:41.

Details

Summary

localforage.clear() is not always clearing storage in between tests. localforage is not actively maintained.

We should probably move away from localforage. However, we need to standardize how we use storage first. For now, just use an effective clearing method.

No tests added for this function as we do not want to test the library. In practice, we will notice if it is not working as existing tests will fail.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cashtab-clear-storage-better
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27326
Build 54215: Build Diffcashtab-tests
Build 54214: arc lint + arc unit