feat: add Vitest test suite with store and utility tests#10
Merged
Nic-dorman merged 4 commits intomainfrom Apr 8, 2026
Merged
Conversation
Set up Vitest with @nuxt/test-utils and happy-dom for unit/integration testing. Includes mock infrastructure for Tauri invoke commands and WalletConnect/AppKit modules. Tests cover: - settings store: config load/save, devnet manifest detection, Sepolia detection from RPC URL - nodes store: daemon connection flow, SSE event handling, status getters, disconnection recovery - wallet-config: chain ID selection (mainnet/Sepolia/Anvil), token and vault address overrides in devnet mode 19 tests across 3 suites. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Run on every push to main and on pull requests: Frontend: - nuxi typecheck (vue-tsc) - vitest run Rust (parallel matrix): - cargo fmt --check - cargo clippy -D warnings - cargo check Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Set up Vitest with
@nuxt/test-utilsfor unit and integration testing. Includes mock infrastructure and initial test coverage for the most critical frontend logic.What's included
vitest.config.tstests/mocks/tauri.ts@tauri-apps/api/coreinvoke()— lets tests simulate Tauri command responsestests/mocks/appkit.tstests/stores/settings.test.tstests/stores/nodes.test.tstests/utils/wallet-config.test.tsTest coverage
19 tests across 3 suites:
How to run
Test plan
🤖 Generated with Claude Code