1
0
mirror of synced 2025-11-08 21:07:23 +00:00

test(CLI): clarify sandboxed tests

This commit is contained in:
Jason Dreyzehner
2018-03-11 01:39:01 -05:00
parent a8e33afe0b
commit 66e395ef94
2 changed files with 33 additions and 19 deletions

View File

@@ -165,7 +165,11 @@ export async function typescriptStarter(
await tasks.install(runner, projectPath);
}
if (fullName !== Placeholders.name && email !== Placeholders.email) {
const gitIsConfigured =
fullName !== Placeholders.name && email !== Placeholders.email
? true
: false;
if (gitIsConfigured) {
const spinnerGitInit = ora(`Initializing git repository...`).start();
await tasks.initialCommit(commitHash, projectPath, fullName);
spinnerGitInit.succeed();