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 41f9682 commit dd50d70Copy full SHA for dd50d70
test/mocks/directory.ts
@@ -3,6 +3,7 @@ import {mkdtemp, rm} from "fs/promises";
3
import {tmpdir} from "os";
4
import {join} from "path/posix";
5
import {promisify} from "util";
6
+import {rimraf} from "rimraf";
7
8
export function mockIsolatedDirectory({git}: {git: boolean}) {
9
let dir: string;
@@ -24,6 +25,7 @@ export function mockIsolatedDirectory({git}: {git: boolean}) {
24
25
26
afterEach(async () => {
27
process.chdir(cwd);
- await rm(dir, {recursive: true, force: true});
28
+ await rimraf(dir);
29
+ // await rm(dir, {recursive: true, force: true});
30
});
31
}
0 commit comments