Skip to content

Commit 38ad9be

Browse files
committed
feat(output): disable live output in tests
1 parent d0dbfbb commit 38ad9be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/commands/sync.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,9 @@ export const runSync = async (options: SyncOptions, deps: SyncDeps = {}) => {
825825
const plan = await getSyncPlan(options, deps);
826826
await mkdir(plan.cacheDir, { recursive: true });
827827

828+
const isTestRunner = process.argv.includes("--test");
828829
const useLiveOutput =
829-
!options.json && !isSilentMode() && process.stdout.isTTY;
830+
!options.json && !isSilentMode() && process.stdout.isTTY && !isTestRunner;
830831
const reporter = useLiveOutput ? new TaskReporter() : null;
831832
const previous = plan.lockData;
832833
const requiredMissing = plan.results.filter((result) => {

0 commit comments

Comments
 (0)