diff --git a/lib/datasource/artifactory/index.spec.ts b/lib/datasource/artifactory/index.spec.ts
index ff1611903062c24a0ffb3cb0249fd836ec611eb2..693e46c12ecb047b606627b0f89f0c9f5a4caed0 100644
--- a/lib/datasource/artifactory/index.spec.ts
+++ b/lib/datasource/artifactory/index.spec.ts
@@ -37,7 +37,7 @@ describe('datasource/artifactory/index', () => {
         datasource,
         lookupName: testLookupName,
       });
-      expect(res.releases).toHaveLength(4);
+      expect(res?.releases).toHaveLength(4);
       expect(res).toMatchSnapshot({
         registryUrl: 'https://jfrog.company.com/artifactory',
       });
@@ -53,7 +53,7 @@ describe('datasource/artifactory/index', () => {
         datasource,
         lookupName: testLookupName,
       });
-      expect(res.releases).toHaveLength(4);
+      expect(res?.releases).toHaveLength(4);
       expect(res).toMatchSnapshot({
         registryUrl: 'https://jfrog.company.com/artifactory',
       });
@@ -78,7 +78,7 @@ describe('datasource/artifactory/index', () => {
         datasource,
         lookupName: testLookupName,
       });
-      expect(res.releases).toHaveLength(5);
+      expect(res?.releases).toHaveLength(5);
       expect(res).toMatchSnapshot();
     });
 
diff --git a/tsconfig.strict.json b/tsconfig.strict.json
index abbedf333ed137eccb08c1c8911ef747805b437e..f985628d41013aea8ca5c6fbff9bac2dbf3912bb 100644
--- a/tsconfig.strict.json
+++ b/tsconfig.strict.json
@@ -14,6 +14,7 @@
     "lib/data-files.generated.ts",
     "lib/datasource/**/common.ts",
     "lib/datasource/**/types.ts",
+    "lib/datasource/artifactory",
     "lib/datasource/gitlab-tags/util.ts",
     "lib/datasource/helm/common.ts",
     "lib/datasource/metadata.ts",
@@ -90,6 +91,7 @@
   ],
   "exclude": [
     "lib/constants/platform.spec.ts",
+    "lib/datasource/artifactory/**/*.spec.ts",
     "lib/datasource/docker/common.ts",
     "lib/datasource/github-releases/common.ts",
     "lib/datasource/go/common.ts",