diff --git a/lib/datasource/node/index.ts b/lib/datasource/node/index.ts index 62daa1bd8928c61f22f1daa21ad249207874ce56..163e5d0615ccffede202c0f66a6229852b9f93d2 100644 --- a/lib/datasource/node/index.ts +++ b/lib/datasource/node/index.ts @@ -28,6 +28,10 @@ export class NodeDatasource extends Datasource { async getReleases({ registryUrl, }: GetReleasesConfig): Promise<ReleaseResult | null> { + // istanbul ignore if + if (!registryUrl) { + return null; + } const result: ReleaseResult = { homepage: 'https://nodejs.org', sourceUrl: 'https://github.com/nodejs/node', diff --git a/tsconfig.strict.json b/tsconfig.strict.json index 8d6d68893c1db273e8bed5bf1c22f65ea5b70370..b7bbf3976158ab2491ec67439741616c1125c826 100644 --- a/tsconfig.strict.json +++ b/tsconfig.strict.json @@ -111,7 +111,6 @@ "lib/datasource/helm/index.ts", "lib/datasource/index.ts", "lib/datasource/jenkins-plugins/index.ts", - "lib/datasource/node/index.ts", "lib/datasource/npm/get.ts", "lib/datasource/npm/index.ts", "lib/datasource/npm/npmrc.ts",