From 6811a97ea88fbdb3e3dcda1ed9c6c0df2ca4ee13 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Tue, 16 Dec 2025 10:39:37 +0100 Subject: [PATCH] tmp: log disk usage after each vitest test --- tests/test-setup.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test-setup.ts b/tests/test-setup.ts index 20bb5c1e6f..3e87b78feb 100644 --- a/tests/test-setup.ts +++ b/tests/test-setup.ts @@ -1,8 +1,13 @@ import fs from 'node:fs' +import { execaCommand } from 'execa' import { afterEach } from 'vitest' import { type FixtureTestContext } from './utils/contexts' export async function afterTestCleanup({ cleanup }: FixtureTestContext) { + await execaCommand('df -h', { + stdio: 'inherit', + }) + if ('reset' in fs) { ;(fs as any).reset() }