cherry-studio/tests
fullex 26ea33f8c8 refactor(CacheService): change hook tracking from Set to Map for reference counting
- Updated the CacheService to replace the Set used for active hook tracking with a Map to maintain reference counts for each hook.
- Modified methods for registering and unregistering hooks to increment and decrement counts accordingly.
- Adjusted internal deletion checks to utilize the new reference counting mechanism.
- Updated mock implementations in tests to reflect the changes in hook tracking.

This refactor enhances the management of hook references, allowing for more precise control over hook usage and deletion.
2026-01-06 10:01:04 +08:00
..
__mocks__ refactor(CacheService): change hook tracking from Set to Map for reference counting 2026-01-06 10:01:04 +08:00
apis fix(apiServer): use 127.0.0.1 instead of localhost for better compatibility (#11673) 2025-12-04 10:57:42 +08:00
e2e refactor: switch yarn to pnpm (#12260) 2026-01-05 22:16:34 +08:00
main.setup.ts test: update tests to use usePreference hook and improve snapshot consistency 2025-09-16 14:07:54 +08:00
renderer.setup.ts Merge branch 'main' into v2 2025-12-21 10:16:15 +08:00