Skip to content

Commit

Permalink
update runAll to remove logs if addedLogs flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
nexxeln committed Jun 23, 2024
1 parent efbea91 commit ecece3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/helpers/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ export async function runAll(
testResult = await test(options);

if (testResult.type === 'success') {
if (options.addedLogs) {
const codeWithoutLogs = await removeLogsFromCode(options);
await outputFile(options.outputFile, codeWithoutLogs);
options.addedLogs = false;
}
outro(green('All tests passed!'));
return;
}
Expand Down

0 comments on commit ecece3a

Please sign in to comment.