Skip to content

Commit 0042b30

Browse files
committed
chore(deps): rmDir -> rm
rmDir is deprecated
1 parent eb2b632 commit 0042b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fixtures/test-repository.fixture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { existsSync, mkdirSync, rmdirSync } from "node:fs";
1+
import { existsSync, mkdirSync, rmSync } from "node:fs";
22
import { execSync } from "node:child_process";
33
import { sep } from "node:path";
44
import { tmpdir } from "node:os";
@@ -37,7 +37,7 @@ export default class TestRepositoryFixture {
3737

3838
public writeOnDisk(): this {
3939
if (existsSync(this.location)) {
40-
rmdirSync(this.location, { recursive: true });
40+
rmSync(this.location, { recursive: true });
4141
}
4242
mkdirSync(this.location);
4343
execSync(`git -C ${this.location} init`);

0 commit comments

Comments
 (0)