You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2025/09/15 00:36:33 UTC
(airflow) 10/22: Remove config loader from react tests (#55541)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 44724c2af4979f7eb0ded87f038edbbf06b87850
Author: Brent Bovenzi <br...@astronomer.io>
AuthorDate: Thu Sep 11 15:34:52 2025 -0600
Remove config loader from react tests (#55541)
(cherry picked from commit 0b6c753d3713cae4168d1850990fc0f0f5ca96e7)
---
airflow-core/src/airflow/ui/src/utils/AppWrapper.tsx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/airflow-core/src/airflow/ui/src/utils/AppWrapper.tsx b/airflow-core/src/airflow/ui/src/utils/AppWrapper.tsx
index 5e5e1c01aa8..6e1799e8cf3 100644
--- a/airflow-core/src/airflow/ui/src/utils/AppWrapper.tsx
+++ b/airflow-core/src/airflow/ui/src/utils/AppWrapper.tsx
@@ -27,7 +27,13 @@ type Props = {
};
export const AppWrapper = ({ initialEntries }: Props) => {
- const router = createMemoryRouter(routerConfig, { basename: "/", initialEntries });
+ // Strip the config loader from tests
+ const config = routerConfig.map((route) => ({
+ ...route,
+ loader: undefined,
+ }));
+
+ const router = createMemoryRouter(config, { basename: "/", initialEntries });
return (
<BaseWrapper>