diff --git a/plugins/catalog-node/src/catalogService.test.ts b/plugins/catalog-node/src/catalogService.test.ts index 3f11e8a9f0..050f134a71 100644 --- a/plugins/catalog-node/src/catalogService.test.ts +++ b/plugins/catalog-node/src/catalogService.test.ts @@ -18,7 +18,7 @@ import { PluginEndpointDiscovery } from '@backstage/backend-common'; import { createBackendModule, createServiceFactory, - createServiceRef, + discoveryServiceRef, } from '@backstage/backend-plugin-api'; import { startTestBackend } from '@backstage/backend-test-utils'; import { CatalogClient } from '@backstage/catalog-client'; @@ -27,9 +27,7 @@ import { catalogServiceRef } from './catalogService'; describe('catalogServiceRef', () => { it('should return a catalogClient', async () => { const mockDiscoveryFactory = createServiceFactory({ - service: createServiceRef({ - id: 'core.discovery', - }), + service: discoveryServiceRef, deps: {}, factory: async ({}) => { return async () => jest.fn() as unknown as PluginEndpointDiscovery;