diff --git a/plugins/catalog-backend-module-openapi/package.json b/plugins/catalog-backend-module-openapi/package.json index 9ae3692e80..a6266a8bf3 100644 --- a/plugins/catalog-backend-module-openapi/package.json +++ b/plugins/catalog-backend-module-openapi/package.json @@ -49,7 +49,6 @@ "devDependencies": { "@backstage/backend-test-utils": "workspace:^", "@backstage/cli": "workspace:^", - "@backstage/config": "workspace:^", "openapi-types": "^12.0.0" } } diff --git a/plugins/catalog-backend-module-openapi/src/lib/bundle.test.ts b/plugins/catalog-backend-module-openapi/src/lib/bundle.test.ts index 4cf3864aeb..a34b1c9a5b 100644 --- a/plugins/catalog-backend-module-openapi/src/lib/bundle.test.ts +++ b/plugins/catalog-backend-module-openapi/src/lib/bundle.test.ts @@ -14,8 +14,8 @@ * limitations under the License. */ import { bundleFileWithRefs, BundlerRead, BundlerResolveUrl } from './bundle'; +import { mockServices } from '@backstage/backend-test-utils'; import { ScmIntegrations } from '@backstage/integration'; -import { ConfigReader } from '@backstage/config'; const specification = ` openapi: "3.0.0" @@ -186,7 +186,7 @@ describe('bundleFileWithRefs - Testing getRelativePath scenarios', () => { jest.clearAllMocks(); }); - const scmIntegrations = ScmIntegrations.fromConfig(new ConfigReader({})); + const scmIntegrations = ScmIntegrations.fromConfig(mockServices.rootConfig()); const resolveUrl: BundlerResolveUrl = jest.fn( (url: string, base: string): string => { diff --git a/yarn.lock b/yarn.lock index 141d30e5e9..f40ec341af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6150,7 +6150,6 @@ __metadata: "@backstage/backend-test-utils": "workspace:^" "@backstage/catalog-model": "workspace:^" "@backstage/cli": "workspace:^" - "@backstage/config": "workspace:^" "@backstage/integration": "workspace:^" "@backstage/plugin-catalog-common": "workspace:^" "@backstage/plugin-catalog-node": "workspace:^"