Skip to content

Commit e511cc7

Browse files
committed
testing if git is installed on ubuntu
1 parent 105f0ed commit e511cc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/mocks/directory.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ export function mockIsolatedDirectory({ git }: { git: boolean; }) {
1111
cwd = process.cwd();
1212
dir = await mkdtemp(join(tmpdir(), "framework-test-"));
1313
process.chdir(dir);
14-
if (git) (await promisify(exec)("git init")).stdout;
14+
if (git) {
15+
const {stdout, stderr} = (await promisify(exec)("git init"));
16+
console.log({stdout, stderr});
17+
};
1518
});
1619

1720
afterEach(async () => {

0 commit comments

Comments
 (0)