HomePhabricator

[Cashtab] Better helper function to clear localforage between tests

Description

[Cashtab] Better helper function to clear localforage between tests

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
bytesofmanAuthored on Feb 22 2024, 14:39
bytesofmanPushed on Feb 22 2024, 17:00
Reviewer
Restricted Project
Differential Revision
D15516: [Cashtab] Better helper function to clear localforage between tests
Parents
rABC36ac73846dd3: doc: Simplify guix install doc, after 1.4 release
Branches
Unknown
Tags
Unknown