diff --git a/lib/util/git/index.spec.ts b/lib/util/git/index.spec.ts index c00b3eb2d3ac9daf39a08776570e0c8e7152fc69..6a5311fc7d4c7a4c3c98975485ad8ec279fa5c88 100644 --- a/lib/util/git/index.spec.ts +++ b/lib/util/git/index.spec.ts @@ -14,7 +14,7 @@ describe('platform/git', () => { beforeAll(async () => { base = await tmp.dir({ unsafeCleanup: true }); - const repo = Git(base.path).silent(true); + const repo = Git(base.path); await repo.init(); defaultBranch = (await repo.raw('branch', '--show-current')).trim(); await repo.addConfig('user.email', 'Jest@example.com'); @@ -97,7 +97,7 @@ describe('platform/git', () => { expect(await git.getFileList()).toMatchSnapshot(); }); it('should exclude submodules', async () => { - const repo = Git(base.path).silent(true); + const repo = Git(base.path); await repo.submoduleAdd(base.path, 'submodule'); await repo.commit('Add submodule'); await git.initRepo({ @@ -348,7 +348,7 @@ describe('platform/git', () => { describe('initRepo())', () => { it('should fetch latest', async () => { - const repo = Git(base.path).silent(true); + const repo = Git(base.path); await repo.checkout(['-b', 'test', defaultBranch]); await fs.writeFile(base.path + '/test', 'lorem ipsum'); await repo.add(['test']); @@ -376,7 +376,7 @@ describe('platform/git', () => { }); it('should set branch prefix', async () => { - const repo = Git(base.path).silent(true); + const repo = Git(base.path); await repo.checkout(['-b', 'renovate/test', defaultBranch]); await fs.writeFile(base.path + '/test', 'lorem ipsum'); await repo.add(['test']); @@ -404,7 +404,7 @@ describe('platform/git', () => { }); it('should fail clone ssh submodule', async () => { - const repo = Git(base.path).silent(true); + const repo = Git(base.path); await fs.writeFile( base.path + '/.gitmodules', '[submodule "test"]\npath=test\nurl=ssh://0.0.0.0' @@ -439,7 +439,7 @@ describe('platform/git', () => { }); git.getBranchCommit(defaultBranch); await git.syncGit(); - const repo = Git(tmpDir.path).silent(true); + const repo = Git(tmpDir.path); const res = (await repo.raw(['config', 'extra.clone.config'])).trim(); expect(res).toBe('test-extra-config-value'); });