One in Get-GitDirectory.Tests.ps1: Returns the correct dir when under a worktree
Three of Get-GitStatus.Tests.ps1 - all under: Context Branch progress suffix
A few from TabExpansion.Tests.ps1 - in contexts as:
Git Config Alias TabExpansion Tests
PowerShell Alias TabExpansion Tests
PowerShell Special Chars Tests
Those tests will fail, as they could not make commits. Moreover, some tests were being "polluting" global configuration with some test aliases, which were not removed after theirs execution.
Have a global
.gitconfig
with:Which makes
Invoke-Pester
to fail tests with:Get-GitDirectory.Tests.ps1
:Returns the correct dir when under a worktree
Get-GitStatus.Tests.ps1
- all under:Context Branch progress suffix
TabExpansion.Tests.ps1
- in contexts as:Git Config Alias TabExpansion Tests
PowerShell Alias TabExpansion Tests
PowerShell Special Chars Tests
Those tests will fail, as they could not make commits. Moreover, some tests were being "polluting" global configuration with some test aliases, which were not removed after theirs execution.
Thus, your
.gitconfig
file became something like:This PR should fix that, and tests should not be broken due to GPG configuration, and no foreign aliases should stay.