mirror of
https://github.com/desktop/desktop
synced 2024-09-19 16:12:20 +00:00
3393dbeb3d
This commit unsets both HOME and USERPROFILE for unit tests, thus isolating us from falling back to a gitconfig in a user's home directory.
14 lines
451 B
TypeScript
14 lines
451 B
TypeScript
const environmentVariables = {
|
|
// setting commit information so that tests don't need to rely on global config
|
|
GIT_AUTHOR_NAME: 'Joe Bloggs',
|
|
GIT_AUTHOR_EMAIL: 'joe.bloggs@somewhere.com',
|
|
GIT_COMMITTER_NAME: 'Joe Bloggs',
|
|
GIT_COMMITTER_EMAIL: 'joe.bloggs@somewhere.com',
|
|
// signalling to dugite to use the bundled Git environment
|
|
TEST_ENV: '1',
|
|
HOME: '',
|
|
USERPROFILE: '',
|
|
}
|
|
|
|
process.env = { ...process.env, ...environmentVariables }
|