Skip to content

fix: failed unit test and CI test #167

fix: failed unit test and CI test

fix: failed unit test and CI test #167

Triggered via pull request October 25, 2024 04:28
Status Failure
Total duration 3m 44s
Artifacts

build_test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 11 warnings
test_and_build
TypeError: Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object at Function.entries (<anonymous>) at Yc (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2108:3273) at W5 (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2108:3717) at /home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2146:16306 at _r (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2137:164) at jN (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2146:16260)
test_and_build
TypeError: Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object at Function.entries (<anonymous>) at u3 (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2103:384) at /home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2146:16677 at _r (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2137:164) at jN (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2146:16573) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
test_and_build
TypeError: Cannot convert undefined or null to object TypeError: Cannot convert undefined or null to object at Function.values (<anonymous>) at hu (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2108:5116) at h1 (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2108:5283) at g1 (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2117:27) at b9 (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2132:338) at /home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2146:16883 at _r (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2137:164) at jN (/home/runner/work/_actions/artiomtr/jest-coverage-report-action/v2.3.1/dist/index.js:2146:16845) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
test_and_build
Jest coverage report action failed
test_and_build
Process completed with exit code 1.
test_and_build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test_and_build: packages/mock-app/src/components/CredentialTabs/CredentialTabs.tsx#L23
React Hook useEffect has a missing dependency: 'configDefaultTabs'. Either include it or remove the dependency array
test_and_build: packages/mock-app/src/components/Scanner/Scanner.tsx#L24
React Hook useMemo has missing dependencies: 'props.focusMode' and 'props.useBarCodeDetectorIfSupported'. Either include them or remove the dependency array
test_and_build: packages/mock-app/src/components/Scanner/Scanner.tsx#L74
React Hook useEffect has missing dependencies: 'deviceType' and 'startHtml5QrcodeScanner'. Either include them or remove the dependency array
test_and_build: packages/mock-app/src/pages/Layout.tsx#L1
'useCallback' is defined but never used
test_and_build: packages/mock-app/src/pages/Scanning.tsx#L58
React Hook React.useEffect has missing dependencies: 'goVerifyPage' and 'isLoading'. Either include them or remove the dependency array
test_and_build: packages/mock-app/src/pages/Verify.tsx#L34
React Hook useEffect has a missing dependency: 'fetchEncryptedVC'. Either include it or remove the dependency array
test_and_build: packages/mock-app/src/pages/Verify.tsx#L41
React Hook useEffect has a missing dependency: 'verifyCredential'. Either include it or remove the dependency array
test_and_build: packages/services/src/api.service.ts#L26
Unexpected console statement
test_and_build: packages/services/src/epcisEvents/helpers.ts#L12
'currentData' is defined but never used
test_and_build: packages/services/src/epcisEvents/helpers.ts#L20
'dependenciesValues' is defined but never used