chore: fix some tests
Co-authored-by: Fredrik Adelöw <freben@gmail.com> Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com> Co-authored-by: Johan Haals <johan.haals@gmail.com> Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
} from '../wiring';
|
||||
import { MockConfigApi } from '@backstage/test-utils';
|
||||
import { PageBlueprint } from './PageBlueprint';
|
||||
import appPlugin from '@backstage/plugin-app';
|
||||
|
||||
describe('RouterBlueprint', () => {
|
||||
it('should return an extension when calling make with sensible defaults', () => {
|
||||
@@ -74,6 +75,7 @@ describe('RouterBlueprint', () => {
|
||||
|
||||
const app = createSpecializedApp({
|
||||
features: [
|
||||
appPlugin,
|
||||
createExtensionOverrides({
|
||||
extensions: [
|
||||
extension,
|
||||
@@ -126,6 +128,7 @@ describe('RouterBlueprint', () => {
|
||||
|
||||
const app = createSpecializedApp({
|
||||
features: [
|
||||
appPlugin,
|
||||
createExtensionOverrides({
|
||||
extensions: [
|
||||
extension,
|
||||
|
||||
@@ -33,7 +33,7 @@ describe('ThemeBlueprint', () => {
|
||||
"$$type": "@backstage/ExtensionDefinition",
|
||||
"T": undefined,
|
||||
"attachTo": {
|
||||
"id": "api:app-theme",
|
||||
"id": "api:app/app-theme",
|
||||
"input": "themes",
|
||||
},
|
||||
"configSchema": undefined,
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('TranslationBlueprint', () => {
|
||||
"$$type": "@backstage/ExtensionDefinition",
|
||||
"T": undefined,
|
||||
"attachTo": {
|
||||
"id": "api:translations",
|
||||
"id": "api:app/translations",
|
||||
"input": "translations",
|
||||
},
|
||||
"configSchema": undefined,
|
||||
|
||||
@@ -25,6 +25,7 @@ import { coreExtensionData } from './coreExtensionData';
|
||||
import { MockConfigApi, renderWithEffects } from '@backstage/test-utils';
|
||||
import { createExtensionInput } from './createExtensionInput';
|
||||
import { BackstagePlugin } from './types';
|
||||
import appPlugin from '@backstage/plugin-app';
|
||||
|
||||
const nameExtensionDataRef = createExtensionDataRef<string>().with({
|
||||
id: 'name',
|
||||
@@ -127,7 +128,7 @@ function createTestAppRoot({
|
||||
config: JsonObject;
|
||||
}) {
|
||||
return createApp({
|
||||
features,
|
||||
features: [...features, appPlugin],
|
||||
configLoader: async () => ({ config: new MockConfigApi(config) }),
|
||||
}).createRoot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user