From 1d469469630fc71504a82ddf8cf43ffb266fa7c7 Mon Sep 17 00:00:00 2001 From: Tianyi Cui <53024+tianyicui@users.noreply.github.com> Date: Sun, 23 Aug 2026 16:02:32 +0800 Subject: [PATCH] test(docs): use a block cleanup callback --- scripts/verify-subsystem-pages.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/verify-subsystem-pages.spec.ts b/scripts/verify-subsystem-pages.spec.ts index 65e696468c..45eeedb35e 100644 --- a/scripts/verify-subsystem-pages.spec.ts +++ b/scripts/verify-subsystem-pages.spec.ts @@ -8,7 +8,9 @@ import { auditSubsystemPages } from './verify-subsystem-pages.ts' function fixture(): string { const root = mkdtempSync(join(tmpdir(), 'dsh-subsystem-pages-')) - onTestFinished(() => rmSync(root, { recursive: true, force: true })) + onTestFinished(() => { + rmSync(root, { recursive: true, force: true }) + }) return root }