frontend-test-utils: marking as breaking

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2025-10-13 15:14:02 +02:00
parent 116e05e294
commit a8e223fa89
3 changed files with 2 additions and 14 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
---
'@backstage/frontend-test-utils': patch
'@backstage/frontend-test-utils': minor
---
Add a new utility `renderTestApp` to `@backstage/frontend-test-utils` that simplifies rendering extensions within the Backstage application context for testing purposes. This utility replaces the use of `renderInTestApp` when the `extensions` option is needed.
**BREAKING**: Removed the `extensions` option from `renderInTestApp`. If you need to pass extensions to the test app, use the new `renderTestApp` utility instead.
@@ -145,7 +145,6 @@ export type TestAppOptions = {
[path: string]: RouteRef;
};
config?: JsonObject;
extensions?: ExtensionDefinition<any>[];
features?: FrontendFeature[];
initialRouteEntries?: string[];
};
@@ -67,13 +67,6 @@ export type TestAppOptions = {
*/
config?: JsonObject;
/**
* Additional extensions to add to the test app.
*
* @deprecated Use `renderTestApp` instead.
*/
extensions?: ExtensionDefinition<any>[];
/**
* Additional features to add to the test app.
*/
@@ -195,10 +188,6 @@ export function renderInTestApp(
}
}
if (options?.extensions) {
extensions.push(...options.extensions);
}
const features: FrontendFeature[] = [
createFrontendPlugin({
pluginId: 'test',