-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(config): Better prefix handling and enhanced coverage #12083
Conversation
import * as env from './env'; | ||
|
||
process.exit = jest.fn() as never; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use jest.spyOn
instead.
Ah, wait a minute, I'll also fix my own |
@@ -182,6 +224,25 @@ describe('workers/global/config/parse/env', () => { | |||
expect(config.enabled).toBe(false); | |||
expect(config.token).toBe('a'); | |||
}); | |||
describe('malformed RENOVATE_CONFIG', () => { | |||
let processExit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a type
Anything else to do? |
🎉 This PR is included in version 27.31.4 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes:
Test uncovered exception handling
Context:
Ref: #12069
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: