You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2026/04/27 01:02:54 UTC
(airflow) branch v3-2-test updated: Fix setupServer type mismatch by letting TypeScript infer it. (#65166)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-2-test by this push:
new c0fd63365dd Fix setupServer type mismatch by letting TypeScript infer it. (#65166)
c0fd63365dd is described below
commit c0fd63365dddfc73fd23fec63b6e7fc05b225b51
Author: Karthikeyan Singaravelan <ti...@gmail.com>
AuthorDate: Mon Apr 27 06:32:47 2026 +0530
Fix setupServer type mismatch by letting TypeScript infer it. (#65166)
---
airflow-core/src/airflow/ui/src/pages/Dag/DagHeader.test.tsx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/airflow-core/src/airflow/ui/src/pages/Dag/DagHeader.test.tsx b/airflow-core/src/airflow/ui/src/pages/Dag/DagHeader.test.tsx
index b0c57f4a4f7..cd7d1177032 100644
--- a/airflow-core/src/airflow/ui/src/pages/Dag/DagHeader.test.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Dag/DagHeader.test.tsx
@@ -18,7 +18,7 @@
*/
import "@testing-library/jest-dom";
import { render, screen, waitFor } from "@testing-library/react";
-import { setupServer, type SetupServerApi } from "msw/node";
+import { setupServer } from "msw/node";
import { afterEach, describe, it, expect, beforeAll, afterAll } from "vitest";
import type { DAGDetailsResponse } from "openapi/requests/types.gen";
@@ -28,10 +28,9 @@ import { Wrapper } from "src/utils/Wrapper";
import { Header } from "./Header";
-let server: SetupServerApi;
+const server = setupServer(...handlers);
beforeAll(() => {
- server = setupServer(...handlers);
server.listen({ onUnhandledRequest: "bypass" });
});