Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit c299f59

Browse files
committed
Adapt unit tests to git 1.8 used for HappyPath tests
Signed-off-by: Artem Zatsarynnyi <[email protected]>
1 parent b751774 commit c299f59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generator/tests/init-sources/init-sources.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ describe('Test Extensions', () => {
7575
});
7676

7777
function initGit(cwd: string) {
78-
cp.execSync('git init -b main', { cwd });
78+
cp.execSync('git init', { cwd });
79+
cp.execSync('git checkout -b main', { cwd });
7980
cp.execSync('git config --local user.name "test user"', { cwd });
8081
cp.execSync('git config --local user.email [email protected]', { cwd });
8182
cp.execSync(`git add ${cwd}`, { cwd });

0 commit comments

Comments
 (0)