test(docs): use a block cleanup callback
This commit is contained in:
parent
97938582e5
commit
1d46946963
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue