Skip to content

Commit

Permalink
ci(test): test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jogelin committed Dec 14, 2024
1 parent 690f249 commit 7810d8e
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 20 deletions.
3 changes: 0 additions & 3 deletions e2e/examples/back/huge-angular-mf.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ describe(`e2e: ${conventionsName}`, () => {
recursive: true,
force: true,
});
} else {
console.log(`Test failed - Workspace content at ${wsCwd}:`);
runCommand('ls -la', wsCwd);
}
});

Expand Down
3 changes: 0 additions & 3 deletions e2e/examples/back/huge-next-full-stack.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ describe(`e2e: ${conventionsName}`, () => {
recursive: true,
force: true,
});
} else {
console.log(`Test failed - Workspace content at ${wsCwd}:`);
runCommand('ls -la', wsCwd);
}
});

Expand Down
3 changes: 0 additions & 3 deletions e2e/examples/back/nx-preset-angular-monorepo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ describe(`e2e: ${conventionsName}`, () => {
recursive: true,
force: true,
});
} else {
console.log(`Test failed - Workspace content at ${wsCwd}:`);
runCommand('ls -la', wsCwd);
}
});

Expand Down
3 changes: 0 additions & 3 deletions e2e/examples/back/nx-preset-react-monorepo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ describe(`e2e: ${conventionsName}`, () => {
recursive: true,
force: true,
});
} else {
console.log(`Test failed - Workspace content at ${wsCwd}:`);
runCommand('ls -la', wsCwd);
}
});

Expand Down
3 changes: 0 additions & 3 deletions e2e/examples/back/with-previous-nx-version.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ describe(`e2e: ${conventionsName}`, () => {
recursive: true,
force: true,
});
} else {
console.log(`Test failed - Workspace content at ${wsCwd}:`);
runCommand('ls -la', wsCwd);
}
});

Expand Down
3 changes: 0 additions & 3 deletions e2e/examples/tests/huge-angular-full-stack.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ describe(`e2e: ${conventionsName}`, () => {
recursive: true,
force: true,
});
} else {
console.log(`Test failed - Workspace content at ${wsCwd}:`);
runCommand('ls -la', wsCwd);
}
});

Expand Down
8 changes: 6 additions & 2 deletions e2e/utils/create-huge-nx-workspace.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ export function uniq(prefix: string): string {
}

export function runCommand(command: string, cwd: string): string {
console.log(`Running command: ${command}`);
let result = '';
try {
const result = execSync(`${command}${isVerbose() ? ' --verbose' : ''}`, {
result = execSync(`${command}${isVerbose() ? ' --verbose' : ''}`, {
cwd,
stdio: 'pipe',
env: {
Expand All @@ -75,7 +77,9 @@ export function runCommand(command: string, cwd: string): string {

return result;
} catch (e) {
console.error(`Original command: ${command}`, `${e.stdout}\n\n${e.stderr}`);
console.error(`[ERROR]: Command: ${command}`, `${e.stdout}\n\n${e.stderr}`);
console.error(result);
console.error(e);
throw e;
}
}

0 comments on commit 7810d8e

Please sign in to comment.