From f3f2bd6f9e11c3bcef322d547c0d9347b8d39a64 Mon Sep 17 00:00:00 2001 From: Scott Cooper Date: Tue, 14 Oct 2025 16:29:09 -0700 Subject: [PATCH] test(ui): Deprecate router returned from initializeOrg Try to point people towards the router returned from render, has no use in the new test environment. --- tests/js/sentry-test/initializeOrg.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/js/sentry-test/initializeOrg.tsx b/tests/js/sentry-test/initializeOrg.tsx index e243c26382c6fa..7bf68ef1244604 100644 --- a/tests/js/sentry-test/initializeOrg.tsx +++ b/tests/js/sentry-test/initializeOrg.tsx @@ -25,6 +25,9 @@ interface InitializeOrgOptions { organization?: Partial; project?: Partial; projects?: Array>; + /** + * @deprecated Use `initialRouterConfig` and the router returned from `render` instead. + */ router?: PartialInjectedRouter; } @@ -77,6 +80,9 @@ export function initializeOrg organization, project: project!, projects, + /** + * @deprecated Use `initialRouterConfig` and the router returned from `render` instead. + */ router, routerProps, };