You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive test coverage across frontend and Rust crates
Implements test infrastructure and ~268 new tests covering areas that previously
had zero test coverage. Frontend uses Vitest with jsdom and Testing Library;
Rust tests use in-memory SQLite and standard #[test]/#[tokio::test] patterns.
Frontend (170 tests):
- Vitest setup with Tauri IPC mocking (invoke, events, plugins)
- Pure function tests: amount conversion, addresses, hex, formatting, URLs
- WalletConnect schema validation for all 17 commands
- Zustand store tests with mocked bindings
- Handler tests for CHIP-0002, offers, and high-level commands
Rust (98 tests):
- sage-keychain: encrypt/decrypt round-trips, keychain CRUD, serialization
- sage-database: blocks, offers, collections, mempool, type conversion utils
- sage-config: config defaults/round-trip, network inheritance, v1 migration
- sage parse: all parse_* functions (asset IDs, coins, hashes, signatures)
CI: adds lint and frontend test steps to build workflow.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments