Skip to content

fix(bridge): repair main — axios 1.x mock type and duplicate declaration - #332

Merged
N-thnI merged 1 commit into
mainfrom
fix/unbreak-bridge-tests-on-main
Aug 22, 2026
Merged

fix(bridge): repair main — axios 1.x mock type and duplicate declaration#332
N-thnI merged 1 commit into
mainfrom
fix/unbreak-bridge-tests-on-main

Conversation

@N-thnI

@N-thnI N-thnI commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

main is currently red: the RPC Relayer Bridge Tests job fails, which blocks every open PR in this repo (#331, #330, #329, #328, #322 all inherit it). This restores it.

Root cause

Two separate breaks, both from recently merged work, neither visible until #323 wired the bridge tests into CI for the first time:

  1. fix(deps): bump axios to ^1.6.0 in atomic-rpc-relayer-bridge to fix S… #327 bumped axios 0.271.x. In axios 1.x, headers is required on InternalAxiosRequestConfig; the test mock passed config: {}.
    TS2741: Property 'headers' is missing in type '{}' but required in type 'InternalAxiosRequestConfig'
    
  2. Fix/issue enable atomic verification default #321 added an options-aware disableAtomicVerification binding but left the older const disableAtomicVerification = process.env... in place at line 75 — TS2451: Cannot redeclare block-scoped variable.

Changes

  • Mock config now supplies headers: new AxiosHeaders(), typed as InternalAxiosRequestConfig
  • Removed the stale duplicate declaration. Kept the newer binding, which honours the options.disableAtomicVerification override and uses parseBooleanFlag — the removed line ignored both and read the env var directly.

Testing

Test Suites: 2 passed, 2 total
Tests:       15 passed, 15 total

No behaviour change beyond restoring the intended options precedence.

The RPC Relayer Bridge Tests job has been failing on main, which blocks every
open PR in this repo. Two causes, both introduced by recently merged work:

1. #327 bumped axios 0.27 -> 1.x, which made `headers` required on
   `InternalAxiosRequestConfig`. The test mock passed `config: {}`.
2. #321 added an options-aware `disableAtomicVerification` binding but left the
   older `const disableAtomicVerification = ...` in place, producing a
   redeclaration error. Kept the newer one — it honours the `options` override
   and uses `parseBooleanFlag`; the stale line ignored both.

Neither surfaced before because the bridge tests only started running in CI
when #323 wired them in.

All 15 bridge tests pass locally.
@github-actions

Copy link
Copy Markdown

Vero Security Health Check passed. No findings above severity threshold.

@N-thnI
N-thnI merged commit 3e308c1 into main Aug 22, 2026
5 checks passed
@N-thnI
N-thnI deleted the fix/unbreak-bridge-tests-on-main branch August 22, 2026 08:18
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.

1 participant