Updated blockindexer to use eventemitter and added structure for the … #66
Annotations
6 errors and 49 warnings
BlockIndexer integration > should populate the database after worker starts:
test/application/workers/BlockIndexer/BlockIndexer.integration.test.ts#L55
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined
at checkListener (node:events:264:3)
at _addListener (node:events:540:3)
at BlockIndexerEvents.addListener (node:events:599:10)
at BlockIndexerEvents.onBlockIngested (/home/runner/work/dig-sdk-v2/dig-sdk-v2/dist/application/workers/BlockIndexer/BlockIndexerEvents.js:10:21)
at onBlockIngested (/home/runner/work/dig-sdk-v2/dig-sdk-v2/dist/application/workers/BlockIndexer/BlockIndexer.worker.logic.js:65:22)
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:109:26
at Generator.next (<anonymous>)
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:4:12)
Error: expect(received).toBe(expected) // Object.is equality
Expected: 2
Received: 0
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/test/application/workers/BlockIndexer/BlockIndexer.integration.test.ts:51:40
at Object.<anonymous> (/home/runner/work/dig-sdk-v2/dig-sdk-v2/test/application/workers/BlockIndexer/BlockIndexer.integration.test.ts:62:5)
|
BlockIndexer integration > should ingest in the database after initial population when worker starts:
test/application/workers/BlockIndexer/BlockIndexer.integration.test.ts#L65
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined
at checkListener (node:events:264:3)
at _addListener (node:events:540:3)
at BlockIndexerEvents.addListener (node:events:599:10)
at BlockIndexerEvents.onBlockIngested (/home/runner/work/dig-sdk-v2/dig-sdk-v2/dist/application/workers/BlockIndexer/BlockIndexerEvents.js:10:21)
at onBlockIngested (/home/runner/work/dig-sdk-v2/dig-sdk-v2/dist/application/workers/BlockIndexer/BlockIndexer.worker.logic.js:65:22)
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:109:26
at Generator.next (<anonymous>)
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:4:12)
Error: expect(received).toBe(expected) // Object.is equality
Expected: 2
Received: 0
at Object.<anonymous> (/home/runner/work/dig-sdk-v2/dig-sdk-v2/test/application/workers/BlockIndexer/BlockIndexer.integration.test.ts:78:38)
|
BlockIndexer integration > should not allow duplicate blockHeight (primary key) in blocks:
test/application/workers/BlockIndexer/BlockIndexer.integration.test.ts#L88
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received undefined
at checkListener (node:events:264:3)
at _addListener (node:events:540:3)
at BlockIndexerEvents.addListener (node:events:599:10)
at BlockIndexerEvents.onBlockIngested (/home/runner/work/dig-sdk-v2/dig-sdk-v2/dist/application/workers/BlockIndexer/BlockIndexerEvents.js:10:21)
at onBlockIngested (/home/runner/work/dig-sdk-v2/dig-sdk-v2/dist/application/workers/BlockIndexer/BlockIndexer.worker.logic.js:65:22)
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:109:26
at Generator.next (<anonymous>)
at /home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/work/dig-sdk-v2/dig-sdk-v2/node_modules/threads/dist/worker/index.js:4:12)
|
build
Process completed with exit code 1.
|
build
Jest coverage report action failed
|
build
Error: The process '/opt/hostedtoolcache/node/24.2.0/x64/bin/npx' failed with exit code 1
Error: The process '/opt/hostedtoolcache/node/24.2.0/x64/bin/npx' failed with exit code 1
at wd._setResult (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:19186)
at wd.CheckComplete (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:18773)
at ChildProcess.<anonymous> (/home/runner/work/_actions/ArtiomTr/jest-coverage-report-action/v2/dist/index.js:21:17765)
at ChildProcess.emit (node:events:507:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)
|
🧾 Statement is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L37
Warning! Not covered statement
|
🧾 Statement is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L44
Warning! Not covered statement
|
🧾 Statement is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L56
Warning! Not covered statement
|
🌿 Branch is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L23
Warning! Not covered branch
|
🌿 Branch is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L37
Warning! Not covered branch
|
🌿 Branch is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L43
Warning! Not covered branch
|
🌿 Branch is not covered:
src/application/workers/BlockIndexer/BlockIndexer.ts#L41
Warning! Not covered branch
|
🧾 Statement is not covered:
src/application/services/WalletService.ts#L34
Warning! Not covered statement
|
🧾 Statement is not covered:
src/application/services/WalletService.ts#L52
Warning! Not covered statement
|
🧾 Statement is not covered:
src/application/services/WalletService.ts#L53
Warning! Not covered statement
|
🌿 Branch is not covered:
src/application/services/WalletService.ts#L16
Warning! Not covered branch
|
🕹️ Function is not covered:
src/application/services/WalletService.ts#L47
Warning! Not covered function
|
🌿 Branch is not covered:
src/infrastructure/ConfigurationServices/NconfService.ts#L28
Warning! Not covered branch
|
🌿 Branch is not covered:
src/infrastructure/ConfigurationServices/NconfService.ts#L42
Warning! Not covered branch
|
🌿 Branch is not covered:
src/infrastructure/ConfigurationServices/NconfService.ts#L55
Warning! Not covered branch
|
🧾 Statement is not covered:
src/application/types/Wallet.ts#L104
Warning! Not covered statement
|
🌿 Branch is not covered:
src/application/types/Wallet.ts#L81
Warning! Not covered branch
|
🌿 Branch is not covered:
src/application/types/Wallet.ts#L103
Warning! Not covered branch
|
🧾 Statement is not covered:
src/application/services/FileCacheService.ts#L56
Warning! Not covered statement
|
🌿 Branch is not covered:
src/application/services/FileCacheService.ts#L55
Warning! Not covered branch
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L20
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L24
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L64
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L67
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L76
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L85
Warning! Not covered statement
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L19
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L23
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L63
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L66
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L70
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/ChiaBlockchainService.ts#L79
Warning! Not covered function
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L22
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L29
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L30
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L31
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L32
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L33
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L34
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L35
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L36
Warning! Not covered statement
|
🧾 Statement is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L37
Warning! Not covered statement
|
🌿 Branch is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L17
Warning! Not covered branch
|
🌿 Branch is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L22
Warning! Not covered branch
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L29
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L30
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L31
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L32
Warning! Not covered function
|
🕹️ Function is not covered:
src/infrastructure/BlockchainServices/TestBlockchainService.ts#L33
Warning! Not covered function
|