Continue migration of Cashtab tests from js to ts
Details
Details
- Reviewers
emack - Group Reviewers
Restricted Project - Commits
- rABCafc9bcff7505: [Cashtab] Convert Home tests to ts
npm test
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- more-ts-ct
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 33995 Build 67459: Build Diff cashtab-tests Build 67458: arc lint + arc unit
Event Timeline
Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
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'.
[0m [90m 11 |[39m [32m'beauty shoe decline spend still weird slot snack coach flee between paper'[39m[33m,[39m
[90m 12 |[39m name[33m:[39m [32m'Transaction Fixtures'[39m[33m,[39m
[31m[1m>[22m[39m[90m 13 |[39m paths[33m:[39m [36mnew[39m [33mMap[39m([
[90m |[39m [31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m
[90m 14 |[39m [
[90m 15 |[39m [35m145[39m[33m,[39m
[90m 16 |[39m {[0m
Build cashtab-tests failed with exit code 1Comment Actions
Build Bitcoin ABC Diffs / Diff Testing (cashtab-tests) failed.
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'.
[0m [90m 10 |[39m [32m'beauty shoe decline spend still weird slot snack coach flee between paper'[39m[33m,[39m
[90m 11 |[39m name[33m:[39m [32m'Transaction Fixtures'[39m[33m,[39m
[31m[1m>[22m[39m[90m 12 |[39m paths[33m:[39m [36mnew[39m [33mMap[39m([
[90m |[39m [31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m[31m[1m^[22m[39m
[90m 13 |[39m [
[90m 14 |[39m [35m145[39m[33m,[39m
[90m 15 |[39m {[0m
Build cashtab-tests failed with exit code 1