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 0a9317e commit f59ea9fCopy full SHA for f59ea9f
src/api/test_helpers.ts
@@ -32,6 +32,9 @@ export async function setupEnvironment(): Promise<Partial<IRunEnvironment>> {
32
}
33
34
export async function teardownEnvironment(environment: IRunEnvironment) {
35
- await fs.rmdir(environment.cwd, { recursive: true })
36
- environment.stdout.end()
+ return new Promise((resolve) => {
+ fs.rm(environment.cwd, { recursive: true }, resolve)
37
+ }).then(() => {
38
+ environment.stdout.end()
39
+ })
40
0 commit comments