diff --git a/test/platform/git/storage.spec.ts b/test/platform/git/storage.spec.ts
index 62a4f45a248dd72398a88c7f618f15e2afed618c..e4dfefbb6c7ba59a8d1ce22c9f972cf6176a95ec 100644
--- a/test/platform/git/storage.spec.ts
+++ b/test/platform/git/storage.spec.ts
@@ -15,6 +15,8 @@ describe('platform/git/storage', () => {
     base = await tmp.dir({ unsafeCleanup: true });
     const repo = Git(base.path).silent(true);
     await repo.init();
+    await repo.addConfig('user.email', 'Jest@example.com');
+    await repo.addConfig('user.name', 'Jest');
     await fs.writeFile(base.path + '/past_file', 'past');
     await repo.add(['past_file']);
     await repo.commit('past message');