mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
test(docs): use a block cleanup callback
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user