1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-24 03:32:51 +02:00
bitwarden-browser/libs/common/spec
Matt Gibson 5b5c165e10
[PM-8847] Delay browser local storage operations during reseed (#9536)
* Define matchers to test promise fulfillment

These are useful for validating that promises depend on other events prior to fulfilling.

* Expose custom matchers to jest projects

Team-specific projects are not touched here to try and reduce review burden.

* Block browser local operations awaiting reseed

This should closes a narrow race condition resulting from storage operations during a reseed event.

* Import from barrel file

This might fix the failing test, but I'm not sure _why_

* Document helper methods

* Validate as few properties as possible per test

* Simplify expected value representation

* Allow waiting in promise matchers

* Specify resolution times in promise orchestration tests.

* Test behavior triggering multiple reseeds.

* Fix typo

* Avoid testing implementation details

* Clear reseed on startup

in case a previous process was aborted in the middle of a reseed.

* Correct formatting
2024-07-19 16:12:29 -04:00
..
matchers [PM-8847] Delay browser local storage operations during reseed (#9536) 2024-07-19 16:12:29 -04:00
fake-account-service.ts [PM-6688] Use AccountService as account source (#8893) 2024-04-30 09:13:02 -04:00
fake-state-provider.ts Require lifetime specification of user-scoped data (#8669) 2024-06-07 09:33:26 +02:00
fake-state.ts [PM-6404] Fully Integrate clearOn Events (#8134) 2024-03-04 20:33:25 +00:00
fake-storage.service.ts [PM-9442] Add tests for undefined state values and proper emulation of ElectronStorageService in tests (#9910) 2024-07-03 16:06:55 +02:00
index.ts Remove memory storage cache from derived state. Use observable cache and port messaging (#8939) 2024-04-26 15:08:39 -04:00
intercept-console.ts Ps/improve-log-service (#8989) 2024-04-30 12:58:16 -04:00
observable-tracker.ts [PM-8379] Update vault popup items service to track loading state (#9528) 2024-06-10 09:55:12 -07:00
utils.ts Prefer prefetching keys (#9289) 2024-05-22 09:56:24 -04:00