원클릭으로
test-coverage
// Increase test coverage to 90% on a target zone with iterative writing and refactoring
// Increase test coverage to 90% on a target zone with iterative writing and refactoring
| name | test-coverage |
| description | Increase test coverage to 90% on a target zone with iterative writing and refactoring |
| disable-model-invocation | true |
Increase test coverage to 90% on a target zone with iterative writing and refactoring.
$TARGET_ZONE
Directory path or Jira ticket URL for the zone to cover (e.g.,
src/mvvm/features/Accounts/orhttps://ledgerhq.atlassian.net/browse/LIVE-1234)
Follow all conventions from the testing skill (.cursor/skills/testing/SKILL.md).
Delegate test execution to the test-runner subagent throughout.
$TARGET_ZONE is a Jira URL, fetch the ticket via Atlassian MCP and extract affected files.code-explorer subagent to analyze the zone: trace execution paths, map dependencies, and identify branching logic worth testing.pnpm <mobile|desktop> test:jest --coverage \
--collectCoverageFrom='<zone-glob>' \
--coverageReporters=text-summary
code-explorer analysis, build the list of files to test. Skip type definitions, barrel re-exports, and thin wrappers with no branching.Order: pure utils -> hooks -> viewModels -> components with side effects.
For each file:
test-runner. Fix failures before moving to the next file.Loop until coverage >= 90%.
Three sequential passes. After each pass, run tests via test-runner -- they must still pass before the next pass.
Pass 1 -- Audit mocks
jest.mock, jest.fn, mockReturnValue, jest.spyOn): is it asserted directly or does it enable a code path whose output is asserted?Pass 2 -- Deduplicate
__tests__/shared.ts.Pass 3 -- Prune redundant tests
it blocks testing the same branch with trivially different inputs -> merge or remove.Output a report covering:
Add E2E tests for new coins or update existing Playwright tests for ledger-live-desktop. Use when the user wants to add send/receive e2e tests for a new cryptocurrency, update test configurations, or work with Speculos device simulator.
Official Ledger wallet-cli — USB-based CLI for Ledger hardware wallet flows (account discover, receive, balances, operations, send) built on the Device Management Kit (DMK)
Create a pull request with proper description, changeset, and all required elements
Interactive setup wizard for running desktop E2E (Playwright + Speculos) tests locally
Interactive setup wizard for running mobile E2E (Detox) tests locally
Guided feature development with codebase understanding and architecture focus