Skip to content

Also mock editionStore, remove error mocks #16361

Also mock editionStore, remove error mocks

Also mock editionStore, remove error mocks #16361

Triggered via push January 17, 2025 16:18
Status Failure
Total duration 4m 2s
Artifacts 7

pipeline.yml

on: push
backend-build
59s
backend-build
audit-licenses-backend
30s
audit-licenses-backend
audit-licenses-frontend
22s
audit-licenses-frontend
prep-playwright-tests
12s
prep-playwright-tests
backend-checks  /  scan-backend-changes
4s
backend-checks / scan-backend-changes
frontend-checks  /  scan-frontend-changes
3s
frontend-checks / scan-frontend-changes
backend-build-image-and-scan
2m 36s
backend-build-image-and-scan
frontend-build-image-and-scan
2m 12s
frontend-build-image-and-scan
generate-backend-code-documentation
1m 13s
generate-backend-code-documentation
generate-entity-relationship-diagram
0s
generate-entity-relationship-diagram
backend-checks  /  backend-unit-tests
0s
backend-checks / backend-unit-tests
backend-checks  /  backend-integration-tests
0s
backend-checks / backend-integration-tests
backend-checks  /  analyze-backend
0s
backend-checks / analyze-backend
frontend-checks  /  frontend-tests
1m 28s
frontend-checks / frontend-tests
frontend-checks  /  frontend-style
2m 20s
frontend-checks / frontend-style
frontend-checks  /  analyze-frontend
1m 54s
frontend-checks / analyze-frontend
push-backend-image-to-registry
38s
push-backend-image-to-registry
push-frontend-image-to-registry
0s
push-frontend-image-to-registry
deploy-staging
0s
deploy-staging
Matrix: e2e-tests / e2e-matrix
Waiting for pending jobs
check-latest-deploy-tag
0s
check-latest-deploy-tag
generate-test-reports
17s
generate-test-reports
query-performance-tests  /  playwright-test
query-performance-tests / playwright-test
deploy-production
0s
deploy-production
push-reports
0s
push-reports
deploy-uat
0s
deploy-uat
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 14 warnings
test/components/periodicalEvaluation/editionReferenceInput.spec.ts > Legal periodical edition reference input > search is triggered with shortcut: frontend/node_modules/jest-fail-on-console/index.js#L48
Error: Expected test not to call console.error(). If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs. Error: AggregateError at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) at Socket.emit (node:events:524:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) undefined at Console.captureMessage [as error] (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jest-fail-on-console/index.js:83:25) at VirtualConsole.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45) at VirtualConsole.emit (node:events:524:28) at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:66:53) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) ❯ Object.dispatchError node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19 ❯ Request.<anonymous> node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18 ❯ ClientRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14 ❯ flushUnexpectedConsoleCalls node_modules/jest-fail-on-console/index.js:48:13 ❯ node_modules/jest-fail-on-console/index.js:145:7
test/components/periodicalEvaluation/editionReferenceInput.spec.ts > Legal periodical edition reference input > adding a decision scrolls to reference on validation errors: frontend/node_modules/jest-fail-on-console/index.js#L48
Error: Expected test not to call console.error(). If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs. Error: AggregateError at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) at Socket.emit (node:events:524:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) undefined at Console.captureMessage [as error] (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jest-fail-on-console/index.js:83:25) at VirtualConsole.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45) at VirtualConsole.emit (node:events:524:28) at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:66:53) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) ❯ Object.dispatchError node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19 ❯ Request.<anonymous> node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18 ❯ ClientRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14 ❯ flushUnexpectedConsoleCalls node_modules/jest-fail-on-console/index.js:48:13 ❯ node_modules/jest-fail-on-console/index.js:145:7
frontend-checks / frontend-tests
Process completed with exit code 1.
test/components/periodicalEvaluation/editionReferenceInput.spec.ts > Legal periodical edition reference input > search is triggered with shortcut: frontend/node_modules/jest-fail-on-console/index.js#L48
Error: Expected test not to call console.error(). If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs. Error: AggregateError at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) at Socket.emit (node:events:524:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) undefined at Console.captureMessage [as error] (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jest-fail-on-console/index.js:83:25) at VirtualConsole.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45) at VirtualConsole.emit (node:events:524:28) at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:66:53) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) ❯ Object.dispatchError node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19 ❯ Request.<anonymous> node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18 ❯ ClientRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14 ❯ flushUnexpectedConsoleCalls node_modules/jest-fail-on-console/index.js:48:13 ❯ node_modules/jest-fail-on-console/index.js:145:7
test/components/periodicalEvaluation/editionReferenceInput.spec.ts > Legal periodical edition reference input > adding a decision scrolls to reference on validation errors: frontend/node_modules/jest-fail-on-console/index.js#L48
Error: Expected test not to call console.error(). If the error is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'error').mockImplementation() and test that the warning occurs. Error: AggregateError at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) at Socket.emit (node:events:524:28) at emitErrorNT (node:internal/streams/destroy:170:8) at emitErrorCloseNT (node:internal/streams/destroy:129:3) undefined at Console.captureMessage [as error] (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jest-fail-on-console/index.js:83:25) at VirtualConsole.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/virtual-console.js:29:45) at VirtualConsole.emit (node:events:524:28) at Object.dispatchError (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:66:53) at Request.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18) at Request.emit (node:events:536:35) at ClientRequest.<anonymous> (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14) at ClientRequest.emit (node:events:524:28) at emitErrorEvent (node:_http_client:104:11) at Socket.socketErrorListener (node:_http_client:518:5) ❯ Object.dispatchError node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:63:19 ❯ Request.<anonymous> node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:655:18 ❯ ClientRequest.<anonymous> node_modules/jsdom/lib/jsdom/living/helpers/http-request.js:127:14 ❯ flushUnexpectedConsoleCalls node_modules/jest-fail-on-console/index.js:48:13 ❯ node_modules/jest-fail-on-console/index.js:145:7
frontend-checks / analyze-frontend
Process completed with exit code 1.
generate-test-reports
An error occurred trying to start process '/usr/bin/bash' with working directory '/home/runner/work/ris-backend-service/ris-backend-service/./frontend/all-blob-reports'. No such file or directory
frontend-checks / scan-frontend-changes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
backend-checks / scan-backend-changes
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
prep-playwright-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
audit-licenses-frontend
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
audit-licenses-backend
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
backend-build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
generate-backend-code-documentation
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend-checks / frontend-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend-checks / analyze-frontend
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend-build-image-and-scan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
frontend-checks / frontend-style
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
backend-build-image-and-scan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
push-backend-image-to-registry
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
generate-test-reports
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636

Artifacts

Produced during runtime
Name Size
backend-code-documentation
1.99 MB
licence-reports-backend
4.96 KB
licence-reports-frontend
2.28 KB
performance-report
2.37 KB
trivy-results-backend.sarif
2.95 KB
vuln-backend.json
23.4 KB
vuln-frontend.json
4.37 KB