cherry-studio/tests
fullex 773e9eac32 feat: enhance mock services for improved testing capabilities
- Updated `CacheService` mock to include TTL support and type-safe memory and shared cache methods, enhancing the accuracy of cache behavior during tests.
- Refactored `DataApiService` mock to implement realistic HTTP methods and subscription handling, including retry configuration and request management, improving the fidelity of API interactions in tests.
- Enhanced `useDataApi` mocks to align with actual hook signatures, providing a more accurate simulation of data fetching and mutation behaviors, including loading and error states.
- Introduced utility functions for managing mock state and triggering subscription callbacks, streamlining the testing process for components relying on these services.
2026-01-04 10:24:35 +08:00
..
__mocks__ feat: enhance mock services for improved testing capabilities 2026-01-04 10:24:35 +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 feat(test): e2e framework (#11494) 2025-11-27 19:52:31 +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