diff --git a/test/platform/git/__snapshots__/storage.spec.js.snap b/test/platform/git/__snapshots__/storage.spec.ts.snap
similarity index 100%
rename from test/platform/git/__snapshots__/storage.spec.js.snap
rename to test/platform/git/__snapshots__/storage.spec.ts.snap
diff --git a/test/platform/git/storage.spec.js b/test/platform/git/storage.spec.ts
similarity index 95%
rename from test/platform/git/storage.spec.js
rename to test/platform/git/storage.spec.ts
index ce61907925e2c7c28d7fa199157c17a1ef892f13..6aea43a85bd71f2cd231f730ff4f8a1d0208d515 100644
--- a/test/platform/git/storage.spec.js
+++ b/test/platform/git/storage.spec.ts
@@ -1,7 +1,7 @@
-const fs = require('fs-extra');
-const Git = require('simple-git/promise');
-const tmp = require('tmp-promise');
-const GitStorage = require('../../../lib/platform/git/storage');
+import fs from 'fs-extra';
+import Git from 'simple-git/promise';
+import tmp from 'tmp-promise';
+import GitStorage from '../../../lib/platform/git/storage';
 
 describe('platform/git/storage', () => {
   jest.setTimeout(15000);
@@ -9,8 +9,8 @@ describe('platform/git/storage', () => {
   const git = new GitStorage();
   const masterCommitDate = new Date();
   masterCommitDate.setMilliseconds(0);
-  let base;
-  let origin;
+  let base: tmp.DirectoryResult;
+  let origin: tmp.DirectoryResult;
   beforeAll(async () => {
     base = await tmp.dir({ unsafeCleanup: true });
     const repo = Git(base.path).silent(true);
@@ -38,7 +38,7 @@ describe('platform/git/storage', () => {
     await repo.checkout('master');
   });
 
-  let tmpDir;
+  let tmpDir: tmp.DirectoryResult;
 
   beforeEach(async () => {
     origin = await tmp.dir({ unsafeCleanup: true });
@@ -51,8 +51,6 @@ describe('platform/git/storage', () => {
     };
     await git.initRepo({
       localDir: tmpDir.path,
-      platform: 'github',
-      repository: 'owner/repo-name',
       url: origin.path,
     });
   });
@@ -149,7 +147,7 @@ describe('platform/git/storage', () => {
   describe('deleteBranch(branchName)', () => {
     it('should send delete', async () => {
       await git.deleteBranch('renovate/past_branch');
-      const branches = await Git(origin.path).branch();
+      const branches = await Git(origin.path).branch({});
       expect(branches.all).not.toContain('renovate/past_branch');
     });
   });
diff --git a/test/tsconfig.json b/test/tsconfig.json
new file mode 100644
index 0000000000000000000000000000000000000000..a0b4d2f9f9a7b50e2adb3ec10f221baf9d2d7f17
--- /dev/null
+++ b/test/tsconfig.json
@@ -0,0 +1,6 @@
+{
+  "extends": "../tsconfig",
+  "compilerOptions": {
+    "types": ["node", "jest"]
+  }
+}
diff --git a/tsconfig.app.json b/tsconfig.app.json
index 10a65a43840c0979df5b247ff0657fc4ac13e7dc..fb2a4e1e6bd031df53f0d42c8a8bf04170d77a1a 100644
--- a/tsconfig.app.json
+++ b/tsconfig.app.json
@@ -2,5 +2,6 @@
   "extends": "./tsconfig",
   "compilerOptions": {
     "resolveJsonModule": false
-  }
+  },
+  "include": ["lib/**/*"]
 }
diff --git a/tsconfig.json b/tsconfig.json
index 4f4b2cf665e7b0bae085505d7785f594824461b6..8736feba2ac81a71fd7e15372eedb9842163d7fd 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,6 +13,6 @@
     "lib": ["es2018"],
     "types": ["node"]
   },
-  "include": ["lib/**/*"],
+  "include": ["lib/**/*", "test/**/*"],
   "exclude": ["node_modules", "./.cache", "./dist"]
 }