frontend-test-utils: removed deprecated setupRequestMockHandlers

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-03-11 00:02:29 +01:00
parent 0d1a397010
commit bba525be4d
4 changed files with 5 additions and 37 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-test-utils': minor
---
**BREAKING**: Removed deprecated `setupRequestMockHandlers` which was replaced by `registerMswTestHooks`.
@@ -120,13 +120,6 @@ export function renderInTestApp(
options?: TestAppOptions,
): RenderResult;
// @public @deprecated (undocumented)
export function setupRequestMockHandlers(worker: {
listen: (t: any) => void;
close: () => void;
resetHandlers: () => void;
}): void;
export { TestApiProvider };
export { TestApiProviderProps };
@@ -1,29 +0,0 @@
/*
* Copyright 2024 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { registerMswTestHooks } from '@backstage/test-utils';
/**
* @public
* @deprecated Use `registerMswTestHooks` from `@backstage/frontend-test-utils` instead.
*/
export function setupRequestMockHandlers(worker: {
listen: (t: any) => void;
close: () => void;
resetHandlers: () => void;
}): void {
registerMswTestHooks(worker);
}
@@ -20,7 +20,6 @@
* Contains utilities that can be used when testing frontend features such as extensions.
*/
export * from './deprecated';
export * from './apis';
export * from './app';