Page MenuHomePhabricator

[Cashtab] Convert Home tests to ts
ClosedPublic

Authored by bytesofman on Jul 29 2025, 17:16.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCafc9bcff7505: [Cashtab] Convert Home tests to ts
Summary

Continue migration of Cashtab tests from js to ts

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
more-ts-ct
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33995
Build 67459: Build Diffcashtab-tests
Build 67458: arc lint + arc unit

Event Timeline

Tail of the build log:

> ecash-lib@4.3.1 build
> tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist

/work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests

added 272 packages, and audited 275 packages in 1s

37 packages are looking for funding
  run `npm fund` for details

7 vulnerabilities (1 low, 5 moderate, 1 high)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> ecash-agora@2.1.0 build
> tsc && tsc -p ./tsconfig.build.json

/work/cashtab /work/abc-ci-builds/cashtab-tests
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 1396 packages, and audited 2833 packages in 13s

284 packages are looking for funding
  run `npm fund` for details

17 vulnerabilities (3 low, 9 moderate, 2 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> cashtab@3.31.12 build
> node scripts/build.js

Creating an optimized production build...
Failed to compile.

TS2322: Type 'Map<number, { hash: string; address: string; wif: string; sk: Uint8Array<ArrayBufferLike>; pk: Uint8Array<ArrayBufferLike>; }>' is not assignable to type 'CashtabWalletPaths'.
  The types returned by 'get(...)' are incompatible between these types.
    Type '{ hash: string; address: string; wif: string; sk: Uint8Array<ArrayBufferLike>; pk: Uint8Array<ArrayBufferLike>; } | undefined' is not assignable to type 'CashtabPathInfo'.
      Type 'undefined' is not assignable to type 'CashtabPathInfo'.
    11 |         'beauty shoe decline spend still weird slot snack coach flee between paper',
    12 |     name: 'Transaction Fixtures',
  > 13 |     paths: new Map([
       |     ^^^^^
    14 |         [
    15 |             145,
    16 |             {


Build cashtab-tests failed with exit code 1

Tail of the build log:

> ecash-lib@4.3.1 build
> tsc && tsc -p ./tsconfig.build.json && cp -r ./src/ffi ./dist

/work/modules/ecash-agora /work/abc-ci-builds/cashtab-tests

added 272 packages, and audited 275 packages in 1s

37 packages are looking for funding
  run `npm fund` for details

7 vulnerabilities (1 low, 5 moderate, 1 high)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> ecash-agora@2.1.0 build
> tsc && tsc -p ./tsconfig.build.json

/work/cashtab /work/abc-ci-builds/cashtab-tests
npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead
npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead
npm warn deprecated eslint@8.56.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 1396 packages, and audited 2833 packages in 13s

284 packages are looking for funding
  run `npm fund` for details

17 vulnerabilities (3 low, 9 moderate, 2 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> cashtab@3.31.12 build
> node scripts/build.js

Creating an optimized production build...
Failed to compile.

TS2322: Type 'Map<number, { hash: string; address: string; wif: string; sk: Uint8Array<ArrayBufferLike>; pk: Uint8Array<ArrayBufferLike>; }>' is not assignable to type 'CashtabWalletPaths'.
  The types returned by 'get(...)' are incompatible between these types.
    Type '{ hash: string; address: string; wif: string; sk: Uint8Array<ArrayBufferLike>; pk: Uint8Array<ArrayBufferLike>; } | undefined' is not assignable to type 'CashtabPathInfo'.
      Type 'undefined' is not assignable to type 'CashtabPathInfo'.
    10 |         'beauty shoe decline spend still weird slot snack coach flee between paper',
    11 |     name: 'Transaction Fixtures',
  > 12 |     paths: new Map([
       |     ^^^^^
    13 |         [
    14 |             145,
    15 |             {


Build cashtab-tests failed with exit code 1
This revision is now accepted and ready to land.Jul 29 2025, 23:25
This revision was automatically updated to reflect the committed changes.