diff --git a/lib/modules/datasource/git-refs/index.spec.ts b/lib/modules/datasource/git-refs/index.spec.ts index 026bdd292f3710..a5917fbd0ebed5 100644 --- a/lib/modules/datasource/git-refs/index.spec.ts +++ b/lib/modules/datasource/git-refs/index.spec.ts @@ -5,7 +5,7 @@ import { add, clear } from '../../../util/host-rules'; import { GitRefsDatasource } from '.'; jest.mock('simple-git'); -const simpleGitFactoryMock = simpleGit as jest.Mock; +const simpleGitFactoryMock = simpleGit as jest.Mock>; const packageName = 'https://github.com/example/example.git'; @@ -14,7 +14,7 @@ const lsRemote1 = Fixtures.get('ls-remote-1.txt'); const datasource = GitRefsDatasource.id; describe('modules/datasource/git-refs/index', () => { - let gitMock: any; + let gitMock: jest.MockedObject>; beforeEach(() => { // clear host rules diff --git a/lib/modules/datasource/git-tags/index.spec.ts b/lib/modules/datasource/git-tags/index.spec.ts index 468de9850432bc..58eb6c084a0690 100644 --- a/lib/modules/datasource/git-tags/index.spec.ts +++ b/lib/modules/datasource/git-tags/index.spec.ts @@ -5,7 +5,7 @@ import { add, clear } from '../../../util/host-rules'; import { GitTagsDatasource } from '.'; jest.mock('simple-git'); -const simpleGitFactoryMock = simpleGit as jest.Mock; +const simpleGitFactoryMock = simpleGit as jest.Mock>; const packageName = 'https://github.com/example/example.git'; @@ -15,7 +15,7 @@ const datasource = GitTagsDatasource.id; const datasourceInstance = new GitTagsDatasource(); describe('modules/datasource/git-tags/index', () => { - let gitMock: any; + let gitMock: jest.MockedObject>; beforeEach(() => { // clear host rules