davidfgcorreia commented on PR #51146:
URL: https://github.com/apache/airflow/pull/51146#issuecomment-2993050624
Hi, I'm having some trouble running the UI tests. I'm following the
instructions in the runner and using pnpm test, but when I try to render a
component like this:
<AppWrapper
initialEntries={["/dags/log_grouping/runs/manual__2025-02-18T12:19/tasks/generate"]}
/>
I'm not getting the expected mocks. instead, I get a fetch error:
stderr | Fetch.onError
(file:/root/documentos/PIC/airflow/airflow-core/src/airflow/ui/node_modules/.pnpm/[email protected]/node_modules/happy-dom/src/fetch/Fetch.ts:668:37)
Error: connect ECONNREFUSED 127.0.0.1:3000
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 3000
}
It seems like the tests are trying to make a real network request instead of
using mocks. Any idea what might be causing this or how I can properly mock the
backend for this route?
Thanks in advance!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]