Skip to content

Commit 7531c58

Browse files
authored
fix: Replace deprecated rmdir with rm in MockRoot clean method (#35)
1 parent 8aa0dd3 commit 7531c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

__test__/util.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { randomUUID } from 'node:crypto'
2-
import { writeFile, mkdir, rmdir } from 'node:fs/promises'
2+
import { writeFile, mkdir, rm } from 'node:fs/promises'
33
import { tmpdir } from 'node:os'
44
import { join } from 'node:path'
55

@@ -54,7 +54,7 @@ export class MockRoot {
5454
* Cleanup the mock docroot
5555
*/
5656
async clean() {
57-
await rmdir(this.path, {
57+
await rm(this.path, {
5858
recursive: true,
5959
force: true
6060
})

0 commit comments

Comments
 (0)