chore: should be wrapped up in a plugin instead of a module

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-09-03 12:02:17 +02:00
parent 538972e19e
commit 40b8a7a280
2 changed files with 3 additions and 5 deletions
@@ -57,7 +57,6 @@ describe('SignInPageBlueprint', () => {
const MockSignInPage = () => <div data-testid="mock-sign-in" />;
const extension = SignInPageBlueprint.make({
name: 'test',
params: { loader: async () => () => <MockSignInPage /> },
});
@@ -32,7 +32,7 @@ import {
IconComponent,
RouterBlueprint,
NavItemBlueprint,
createExtensionOverrides,
createFrontendPlugin,
} from '@backstage/frontend-plugin-api';
import appPlugin from '@backstage/plugin-app';
@@ -136,7 +136,6 @@ export function renderInTestApp(
): RenderResult {
const extensions: Array<ExtensionDefinition> = [
createExtension({
namespace: 'test',
attachTo: { id: 'app/routes', input: 'routes' },
output: [coreExtensionData.reactElement, coreExtensionData.routePath],
factory: () => {
@@ -147,7 +146,6 @@ export function renderInTestApp(
},
}),
RouterBlueprint.make({
namespace: 'test',
params: {
Component: ({ children }) => <MemoryRouter>{children}</MemoryRouter>,
},
@@ -182,7 +180,8 @@ export function renderInTestApp(
}
const features: FrontendFeature[] = [
createExtensionOverrides({
createFrontendPlugin({
id: 'test',
extensions,
}),
appPluginOverride,