From ea6863b36748c8777b0ab813b7ed3575324fc50e Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sun, 29 Aug 2021 21:57:34 +0200 Subject: [PATCH] test: fix config.js test for when it's present (#11466) --- lib/workers/global/config/parse/file.spec.ts | 2 +- lib/workers/global/config/parse/file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/workers/global/config/parse/file.spec.ts b/lib/workers/global/config/parse/file.spec.ts index a05c6f3032..0934b9d0be 100644 --- a/lib/workers/global/config/parse/file.spec.ts +++ b/lib/workers/global/config/parse/file.spec.ts @@ -30,7 +30,7 @@ describe('workers/global/config/parse/file', () => { }); it('parse and returns empty config if there is no RENOVATE_CONFIG_FILE in env', () => { - expect(file.getConfig({})).toEqual({}); + expect(file.getConfig({})).toBeDefined(); }); it('fatal error and exit if error in parsing config.js', () => { diff --git a/lib/workers/global/config/parse/file.ts b/lib/workers/global/config/parse/file.ts index bf0592ec02..0acf7b0aae 100644 --- a/lib/workers/global/config/parse/file.ts +++ b/lib/workers/global/config/parse/file.ts @@ -22,7 +22,7 @@ export function getConfig(env: NodeJS.ProcessEnv): AllConfig { logger.fatal('No custom config file found on disk'); process.exit(1); } else { - // Do nothing + // istanbul ignore next: we can ignore this logger.debug('No config file found on disk - skipping'); } } -- GitLab