We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2b632 commit 0042b30Copy full SHA for 0042b30
test/fixtures/test-repository.fixture.ts
@@ -1,4 +1,4 @@
1
-import { existsSync, mkdirSync, rmdirSync } from "node:fs";
+import { existsSync, mkdirSync, rmSync } from "node:fs";
2
import { execSync } from "node:child_process";
3
import { sep } from "node:path";
4
import { tmpdir } from "node:os";
@@ -37,7 +37,7 @@ export default class TestRepositoryFixture {
37
38
public writeOnDisk(): this {
39
if (existsSync(this.location)) {
40
- rmdirSync(this.location, { recursive: true });
+ rmSync(this.location, { recursive: true });
41
}
42
mkdirSync(this.location);
43
execSync(`git -C ${this.location} init`);
0 commit comments