Skip to content

test: add integration tests for recovery wallet#230

Merged
danielpeng1 merged 1 commit into
masterfrom
WCN-769/recoveryWallet-integ-test
Jun 10, 2026
Merged

test: add integration tests for recovery wallet#230
danielpeng1 merged 1 commit into
masterfrom
WCN-769/recoveryWallet-integ-test

Conversation

@danielpeng1

Copy link
Copy Markdown
Contributor

Adds end-to-end recoveryWallet integration tests for tbtc in local and external signing modes.

  • recoveryWallet.integ.test.ts with external and local suites: POST /api/v1/tbtc/advancedwallet/recovery, assert 200 + txHex, no BitGo prebuild/send calls, and key provider behaviour (EXTERNAL: 2× /sign; LOCAL: 2× /key/:pub).
  • New mockIndexerServer.ts with nock stubs for Blockchair (balance + UTXOs) and mempool.space fee rates; tests assert all indexer mocks were consumed.
  • Extended setup.ts with recoveryMode for MBE and AWM configs.
  • Tests pass (npm run docker:test:integration shown here):
image

Ticket: WCN-769

@danielpeng1 danielpeng1 self-assigned this Jun 10, 2026
@linear-code

linear-code Bot commented Jun 10, 2026

Copy link
Copy Markdown

WCN-769

@danielpeng1 danielpeng1 marked this pull request as ready for review June 10, 2026 13:32
@danielpeng1 danielpeng1 requested review from a team as code owners June 10, 2026 13:32

@pranishnepal pranishnepal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests the recovery mode

- RECOVERY_MODE=true

@danielpeng1 danielpeng1 merged commit 99d42cd into master Jun 10, 2026
21 checks passed
@danielpeng1 danielpeng1 deleted the WCN-769/recoveryWallet-integ-test branch June 10, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants