Merge pull request #16705 from backstage/renovate/jest-monorepo

fix(deps): update jest monorepo
This commit is contained in:
Johan Haals
2023-03-08 13:11:51 +01:00
committed by GitHub
5 changed files with 399 additions and 383 deletions
@@ -265,10 +265,8 @@ describe('AwsS3UrlReader', () => {
reader.readUrl(
'https://test-bucket.s3.us-east-2.NOTamazonaws.com/file.yaml',
),
).rejects.toThrow(
Error(
`Could not retrieve file from S3; caused by Error: Invalid AWS S3 URL https://test-bucket.s3.us-east-2.NOTamazonaws.com/file.yaml`,
),
).rejects.toMatchInlineSnapshot(
`[Error: Could not retrieve file from S3; caused by Error: Invalid AWS S3 URL https://test-bucket.s3.us-east-2.NOTamazonaws.com/file.yaml]`,
);
});
});
@@ -325,10 +323,8 @@ describe('AwsS3UrlReader', () => {
reader.readUrl!(
'https://test-bucket.s3.us-east-2.NOTamazonaws.com/file.yaml',
),
).rejects.toThrow(
Error(
`Could not retrieve file from S3; caused by Error: Invalid AWS S3 URL https://test-bucket.s3.us-east-2.NOTamazonaws.com/file.yaml`,
),
).rejects.toMatchInlineSnapshot(
`[Error: Could not retrieve file from S3; caused by Error: Invalid AWS S3 URL https://test-bucket.s3.us-east-2.NOTamazonaws.com/file.yaml]`,
);
});
});
@@ -121,7 +121,6 @@ describe('CatalogImportClient', () => {
});
afterEach(() => {
jest.restoreAllMocks();
jest.clearAllMocks();
});
@@ -91,7 +91,7 @@ describe('fetch:rails', () => {
beforeEach(() => {
mockFs({ [`${mockContext.workspacePath}/result`]: {} });
jest.restoreAllMocks();
jest.clearAllMocks();
});
afterEach(() => {
@@ -62,7 +62,7 @@ describe('publish:azure', () => {
(WebApi as unknown as jest.Mock).mockImplementation(() => mockGitApi);
beforeEach(() => {
jest.restoreAllMocks();
jest.clearAllMocks();
});
it('should throw an error when the repoUrl is not well formed', async () => {
@@ -183,7 +183,12 @@ describe('publish:azure', () => {
id: '709e891c-dee7-4f91-b963-534713c0737f',
}));
await action.handler(mockContext);
await action.handler({
...mockContext,
input: {
repoUrl: 'dev.azure.com?repo=bob&owner=owner&organization=org',
},
});
expect(WebApi).toHaveBeenCalledWith(
'https://dev.azure.com/org',
@@ -234,7 +239,7 @@ describe('publish:azure', () => {
expect(initRepoAndPush).toHaveBeenCalledWith({
dir: mockContext.workspacePath,
remoteUrl: 'https://dev.azure.com/organization/project/_git/repo',
defaultBranch: 'master',
defaultBranch: 'main',
auth: { username: 'notempty', password: 'tokenlols' },
logger: mockContext.logger,
commitMessage: 'initial commit',
+386 -370
View File
File diff suppressed because it is too large Load Diff