Merge pull request #15774 from backstage/rugvip/mocks

backend-test-utils: unify mock services and service factory exports
This commit is contained in:
Patrik Oldsberg
2023-01-20 14:00:51 +01:00
committed by GitHub
12 changed files with 314 additions and 151 deletions
@@ -21,7 +21,7 @@ import {
createServiceRef,
createSharedEnvironment,
} from '@backstage/backend-plugin-api';
import { mockConfigFactory } from '@backstage/backend-test-utils';
import { mockServices } from '@backstage/backend-test-utils';
import { createBackend } from './CreateBackend';
const fooServiceRef = createServiceRef<string>({ id: 'foo', scope: 'root' });
@@ -112,7 +112,7 @@ describe('createBackend', () => {
};
},
}),
mockConfigFactory({
mockServices.config.factory({
data: { root: 'root-env' },
}),
createServiceFactory({