Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganitzsh committed Nov 3, 2023
1 parent d4f329e commit 00e34a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utilities/git.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,18 +125,19 @@ describe('git utility', (): void => {
it('pushes to the remote repository from the git repository present in the `cwd` option', async (): Promise<void> => {
expect.assertions(1);

await $`git config --global init.defaultBranch master`;

const { cwd: remoteWorkingDirectory, remoteRepositoryUrl } =
await initGitRemote();
const cloneWorkingDirectory = await gitShallowClone(remoteRepositoryUrl);

const options = { cwd: cloneWorkingDirectory };
const $$ = $(options);

await $$`git config user.email [email protected]`;
await $$`git config user.name [email protected]`;
await $$`git config commit.gpgsign false`;
await gitCommits(['feat: initial commit'], options);
await gitPush('origin', 'main', options);
await gitPush('origin', 'master', options);

const { stdout: commitMessage } = await $({
cwd: remoteWorkingDirectory,
Expand Down

0 comments on commit 00e34a2

Please sign in to comment.