Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
ea6863b3
Unverified
Commit
ea6863b3
authored
3 years ago
by
Rhys Arkins
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
test: fix config.js test for when it's present (#11466)
parent
62a540c2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/workers/global/config/parse/file.spec.ts
+1
-1
1 addition, 1 deletion
lib/workers/global/config/parse/file.spec.ts
lib/workers/global/config/parse/file.ts
+1
-1
1 addition, 1 deletion
lib/workers/global/config/parse/file.ts
with
2 additions
and
2 deletions
lib/workers/global/config/parse/file.spec.ts
+
1
−
1
View file @
ea6863b3
...
...
@@ -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
({})).
to
Equal
({}
);
expect
(
file
.
getConfig
({})).
to
BeDefined
(
);
});
it
(
'
fatal error and exit if error in parsing config.js
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
lib/workers/global/config/parse/file.ts
+
1
−
1
View file @
ea6863b3
...
...
@@ -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 no
thi
ng
//
istanbul ignore next: we can ignore
thi
s
logger
.
debug
(
'
No config file found on disk - skipping
'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment