Commit Graph

3 Commits

Author SHA1 Message Date
fullex
064c6b8632 feat(main): integrate BootConfig into PreferenceService
Route BootConfig.* prefixed keys through bootConfigService in
PreferenceService get/set/setMultiple/getAll methods. Includes:
- Type guard based routing with equality checks on both paths
- Unified notification for BootConfig and preference changes
- Early boot loading and hardware acceleration wiring in main/index.ts
- 9 routing logic tests covering all code paths
- Updated mock for test compatibility

Signed-off-by: fullex <0xfullex@gmail.com>
2026-03-25 09:35:42 -07:00
fullex
d397a43806 fix: typecheck/test:lint/format:check
feat: add data related test
2025-09-16 15:26:36 +08:00
fullex
8353f331f1 test: update tests to use usePreference hook and improve snapshot consistency
- Refactored tests in MainTextBlock and ThinkingBlock to utilize the usePreference hook for managing user settings.
- Updated snapshots in DraggableVirtualList test to reflect changes in class names.
- Enhanced export tests to ensure proper handling of markdown formatting and citation footnotes.
- Mocked additional dependencies globally for improved test reliability.
2025-09-16 14:07:54 +08:00