fix plugin openapi tests
Signed-off-by: Federico Sozio <sozio.federico@gmail.com>
This commit is contained in:
@@ -49,7 +49,6 @@
|
||||
"devDependencies": {
|
||||
"@backstage/backend-test-utils": "workspace:^",
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@backstage/config": "workspace:^",
|
||||
"openapi-types": "^12.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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:^"
|
||||
|
||||
Reference in New Issue
Block a user