Also mock editionStore, remove error mocks #16361
Annotations
3 errors and 1 warning
Run tests:
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
|
Run tests:
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
|
Run tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading